< 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 -

Facebook Google Pinterest Reddit Tumblr Twitter



< Prev
Next >
< Types of JDBC Drivers
JDBC CREATE Table >
Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
C++ and Python

Ad2