Java Database Connectivity
(JDBC)
JDBC
• JDBC is a Java API that is used to connect and
execute query to the database.
• JDBC API uses jdbc drivers to connects to the
database.
Components of JDBC
JDBC Architecture
Why use JDBC?
• Before JDBC, ODBC API was used to connect
and execute query to the database. But ODBC
API uses ODBC driver that is written in C
language which is platform dependent and
unsecured.
• That is why Sun Microsystem has defined its
own API (JDBC API) that uses JDBC driver
written in Java language.
What is API?
• API (Application programming interface) is a
document that contains description of all the
features of a product or software.
• It represents classes and interfaces that
software programs can follow to communicate
with each other. An API can be created for
applications, libraries, operating systems, etc.

javajdbcpptjavajjavajjavajjavajjavaj.pptx

  • 1.
  • 4.
    JDBC • JDBC isa Java API that is used to connect and execute query to the database. • JDBC API uses jdbc drivers to connects to the database.
  • 5.
  • 6.
  • 8.
    Why use JDBC? •Before JDBC, ODBC API was used to connect and execute query to the database. But ODBC API uses ODBC driver that is written in C language which is platform dependent and unsecured. • That is why Sun Microsystem has defined its own API (JDBC API) that uses JDBC driver written in Java language.
  • 9.
    What is API? •API (Application programming interface) is a document that contains description of all the features of a product or software. • It represents classes and interfaces that software programs can follow to communicate with each other. An API can be created for applications, libraries, operating systems, etc.