Back to the 2026 paper

Module 6: Introduction to Java Database Connectivity

20267m

Compare the four types of JDBC drivers with respect to architecture, dependence on native libraries, portability and typical use.

Worked SolutionAI Assisted

Four types of JDBC drivers

Type Architecture Native dependency Portability
1: JDBC–ODBC bridge JDBC translated to ODBC ODBC/native layer Low; obsolete/removed from modern JDKs
2: Native API JDBC translated to vendor native API Yes Requires native library per platform
3: Network protocol JDBC sent to middleware, translated to DB protocol Usually no client native library Portable, requires middleware
4: Thin/pure Java JDBC translated directly to database wire protocol No High; needs database-specific driver

Type 4 is widely used because it is pure Java and communicates directly with the database server. Choose a driver supported by the target database and deployment environment.

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.