JDBC is the industry-standard API for database-independent connectivity between the Java applications and Databases, using a SQL based interface. As with Java itself one of the main features of the JDBC API is its "Write Once, Run Anywhere" capability enabling applications to be move from one OS to another without the need for recompilation. JDBC consists of two key components:
JDBC Drivers are available in four different types ranging from Pure to Bridge construction:
JDBC enables maximum interoperability between the application and database as a single application can access any JDBC-enabled database by simply being configured to use its JDBC driver, and likewise a JDBC enabled application can access a given Database using its JDBC driver. JDBC also has the added advantage of being able to run cross platform with the need for recompilation, the so-called "Write Once, Run Anywhere" capability.