0% found this document useful (0 votes)
57 views2 pages

JDBC

JDBC is an API used in Java to interact with databases by allowing applications to send user requests to a specified database and access tabular data. It contains interfaces like Driver, Connection, and Statement and classes like DriverManager to connect a Java application to a database in 5 steps - register Driver, create connection, create statement, execute queries, and close connection.

Uploaded by

maharinamullah50
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views2 pages

JDBC

JDBC is an API used in Java to interact with databases by allowing applications to send user requests to a specified database and access tabular data. It contains interfaces like Driver, Connection, and Statement and classes like DriverManager to connect a Java application to a database in 5 steps - register Driver, create connection, create statement, execute queries, and close connection.

Uploaded by

maharinamullah50
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

JDBC [JAVA DATABASE CONNECTIVITY]

JDBC is an API (Application programming interface) used in Java


programming to interact with databases. The classes and interfaces of
JDBC allow the application to send requests made by users to the
specified database. We can use JDBC API to access tabular data stored
in any relational database. By the help of JDBC API, we can save,
update, delete and fetch data from the database. The java.sql package
contains classes and interfaces for JDBC API.

A list of popular interfaces of JDBC API are given below:

o Driver interface
o Connection interface
o Statement interface
o PreparedStatement interface
o CallableStatement interface
o ResultSet interface
o ResultSetMetaData interface
o DatabaseMetaData interface
o RowSet interface

A list of popular classes of JDBC API are given below:

o DriverManager class
o Blob class
o Clob class
o Types class

There are 5 steps to connect any java application with the database using JDBC. These
steps are as follows:
o Register the Driver class
o Create connection
o Create statement
o Execute queries
o Close connection

You might also like