Core Java Tutorials

Home Index About

Program 10:

  • Write a Java program to connect the Java API to Database, if connection not successful then throw an exception.
  • Input:

    Output: