Difficulty: Easy
Correct Answer: It is similar in concept to ODBC.
Explanation:
Introduction / Context:
JDBC is the standard Java API for interacting with relational databases. It abstracts vendor-specific protocols via drivers, allowing Java applications to execute SQL and manage connections in a portable way.
Given Data / Assumptions:
Concept / Approach:
JDBC is conceptually similar to ODBC (Open Database Connectivity) in that both define a standard interface to access different databases through drivers. However, JDBC is Java-specific; it is not language independent and is not intended for non-Java languages.
Step-by-Step Solution:
Verification / Alternative check:
Review JDBC architecture diagrams showing JDBC API → Driver Manager → JDBC Driver → DBMS, analogous to ODBC APIs and drivers.
Why Other Options Are Wrong:
Language independent / useful for all OO languages: false; JDBC is for Java.
Three main layers: oversimplification and not a canonical truth for JDBC itself.
Common Pitfalls:
Confusing the JDBC-ODBC bridge (deprecated) with general JDBC usage; assuming drivers behave identically across vendors without testing.
Final Answer:
It is similar in concept to ODBC.
Discussion & Comments