How many JDBC driver types does Sun define?
How many JDBC driver types does Sun define?
Right Answer is:
Four
SOLUTION
- Sun has defined four categories of JDBC drivers.
- In order to connect a Java application to a database using JDBC, you need to use a JDBC driver.
- This driver acts as an intermediary between your application and the database.
- Sun has defined four categories of JDBC drivers. The categories delineate the differences in architecture for the drivers.
- One difference between architectures lies in whether a given driver is implemented in native code or in Java code.
There are 4 types of JDBC drivers:
- Type-1 driver or JDBC-ODBC bridge driver.
- Type-2 driver or Native-API driver.
- Type-3 driver or Network Protocol driver.
- Type-4 driver or Thin driver