It offers the main classes for interacting with your data sources. This is the latest JDBC version at the time of writing this tutorial. The java.sql and javax.sql are the primary packages for JDBC 4.0. JDBC provides the same capabilities as ODBC, allowing Java programs to contain database-independent code. Java can be used to write different types of executables, such as −Īll of these different executables are able to use a JDBC driver to access a database, and take advantage of the stored data. Viewing & Modifying the resulting records.įundamentally, JDBC is a specification that provides a complete set of interfaces that allows for portable access to an underlying database. The JDBC library includes APIs for each of the tasks mentioned below that are commonly associated with database usage.Įxecuting SQL or MySQL queries in the database. JDBC stands for Java Data base Connectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases. JDBC works with Java on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. JDBC API is a Java API that can access any kind of tabular data, especially data stored in a Relational Database. PDF Version Quick Guide Resources Job Search Discussion