Difficulty: Easy
Correct Answer: Valid (Type 1 is the JDBC–ODBC bridge driver)
Explanation:
Introduction / Context:
This question checks core knowledge of JDBC driver classifications. Understanding the four historical JDBC driver types is essential when maintaining legacy code, analyzing performance, or planning migrations away from deprecated components.
Given Data / Assumptions:
Concept / Approach:
JDBC drivers were historically grouped as follows: Type 1 (JDBC–ODBC bridge), Type 2 (native-API partly Java), Type 3 (net-protocol, middleware), and Type 4 (pure Java, database-protocol). Type 1 relies on an ODBC driver on the client and acts as a bridge from JDBC calls to ODBC calls.
Step-by-Step Solution:
Verification / Alternative check:
Cross-check any JDBC summary table: Type 1 is always listed as the JDBC–ODBC bridge. Even though deprecated/removed, legacy docs uniformly agree on this mapping.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing Type 1 (bridge) with Type 4 (thin); assuming deprecation changes the definition rather than support status.
Final Answer:
Valid (Type 1 is the JDBC–ODBC bridge driver)
Discussion & Comments