• Import JDBC packages and then load in any of the following ways- Class.forName(), DriverManager.registerDriver(). Then register JDBC driver
  • Open the connection to the database Connection con= DriverManager.getConnection (url, user, password)
  • To perform a query, create a statement object Statement st= con.createStatement ();
  • Implement the statement object and then return the query resultset. After that process it.
  • Close the resultset, statement objects, and the connection Con.close();

Suggest An Answer

No suggestions avaliable!