Knowee
Questions
Features
Study Tools

Type of jdbc drivers

Question

Type of jdbc drivers

🧐 Not the exact question you are looking for?Go ask a question

Solution

JDBC (Java Database Connectivity) drivers are used to connect Java applications to databases. There are four types of JDBC drivers:

  1. JDBC-ODBC Bridge Driver: This is the most commonly used driver where the JDBC driver uses the ODBC driver to connect to the database. The disadvantage of this driver is that it requires the ODBC driver to be installed on the client machine.

  2. Native-API Driver: This driver uses the client-side libraries of the database. It converts JDBC calls into native calls of the database API. It is not written entirely in Java and hence may not be portable across different platforms.

  3. Network Protocol Driver: This driver uses a three-tier approach where the JDBC calls are converted into a database-independent network protocol which is then translated to a database protocol by a server. This server is a middleware server that can connect to multiple types of databases.

  4. Thin Driver: This driver is a pure Java driver that communicates directly with the vendor's database server. It converts JDBC calls directly into the vendor-specific database protocol. This is the most flexible and reliable of all the drivers.

Each type of driver has its own advantages and disadvantages and can be chosen based on the specific needs of the application.

This problem has been solved

Similar Questions

Which of the following are JDBC drivers?a)Network Protocol driverb)Native-API driverc)JDBC-ODBC bridge driverd)Thin drivere)All of the mentioned

Select the correct answerType IV JDBC driver is a driverOptionswhich is written in C++which communicates through Java socketswhich translates JDBC function calls into API not native to DBMSwhich requires an intermediate layer

What method is used to load a JDBC driver?*1 pointforName()loadDriver()executeDriver()setDriver()

Which of the following are components of JDBC?a)JDBC-ODBC Bridge Driversb)JDBC Driver managerc)JDBC Test suited)All of the mentionede)JDBC API

JDBC drivers exist for many other databases apart from MySQL.*1 pointTrueFalse

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.