Java DataBase Connectivity
Java DataBase Connectivity
Connectivity
(JDBC)
What is JDBC?
JDBC is a Java API for executing SQL
statements.
It consists of a set of classes and
interfaces written in the Java
programming language.
JDBC provides a standard API for
tool/database developers and makes
it possible to write database
applications using a pure Java API.
what are JDBC Driver?
JDBC Drivers are set of classes that
enables the Java application to
communicate with databases.
Java.sql that ships with JDK contains
various classes for using relational
databases. But these classes do not
provide any implementation, only the
behaviours are defined.
The actual implementaions are done in
third-party drivers. Third party vendors
implements the java.sql.Driver interface in
their database driver.
Types of JDBC Drivers
There are four types of JDBC drivers: