163k views
3 votes
What Are The Different Driver Types Available In Jdbc?

User Ihrupin
by
8.0k points

1 Answer

0 votes

Final answer:

There are four different driver types available in JDBC: Type 1, Type 2, Type 3, and Type 4.

Step-by-step explanation:

In JDBC (Java Database Connectivity), there are four different driver types available:

  1. Type 1: JDBC-ODBC Bridge Driver
  2. Type 2: Native-API/partly Java Driver
  3. Type 3: Network Protocol Driver
  4. Type 4: Thin Driver

The Type 1 driver bridges between JDBC and ODBC, allowing connections to databases through ODBC drivers. The Type 2 driver uses a combination of Java and native code to connect to the database. The Type 3 driver uses a neutral network protocol to communicate with the database server, and the Type 4 driver is a pure Java driver that communicates directly with the database server.

User Mikael Eliasson
by
8.4k points