Advertisement



< Prev
Next >



Understanding JDBC API to connect a database



Java Database Connectivity(JDBC) API provide a set of classes and interfaces that allow a Java application to -


Note :

These JDBC classes and interfaces are available in java.sql and javax.sql packages.



Some important JDBC classes and interface

JDBC classes and interface required to connect a Java application to a database are -




Steps to connect a Java application to a database






Closing the connection between Java application and database using JDBC

By calling close() method of Connection interface, we can close the connection between Java application and the database.

con.close();

where con is a reference variable of type Connection


Please share this article -




< Prev
Next >
< Types of JDBC Drivers
JDBC CREATE Table >



Advertisement

Please Subscribe

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page




Advertisement



Notifications



Please check our latest addition

C#, PYTHON and DJANGO


Advertisement