Open In App

Difference between ODBC and JDBC

Improve
Improve
Like Article
Like
Save
Share
Report

JDBC (Java Database Connectivity) and ODBC (Open Database Connectivity). These both are API standards used for connecting applications to databases. ODBC can be used by various programming languages as it is a general API standard. But JDBC is Java-specific and it provides a Java-based interface for database access. ODBC drivers are not Java-centric which means it is designed to work with different languages through a common interface. JDBC drivers are Java-centric.

ODBC vs JDBC

In the below table, we will discuss the major difference between ODBC and JDBC:

ODBC

JDBC

1. ODBC Stands for Open Database Connectivity.

1. JDBC Stands for Java database connectivity.

2. Introduced by Microsoft in 1992.

2. Introduced by SUN Micro Systems in 1997.

3. We can use ODBC for any language like C, C++, Java etc.

3. We can use JDBC only for Java languages.

4. We can choose ODBC only Windows platform.

4. We can use JDBC on any platform.

5. Mostly ODBC Driver is developed in native languages like C, and C++.

5. JDBC Stands for Java database connectivity.

6. For Java applications it is not recommended to use ODBC because performance will be down due to internal conversion and applications will become platform-dependent.

6. For Java applications it is highly recommended to use JDBC because there are no performance & platform dependent problems.

7. ODBC is procedural.

7. JDBC is object-oriented.


Last Updated : 17 Nov, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads