Difficulty: Easy
Correct Answer: Invalid (you still need a JDBC driver to speak the DBMS protocol)
Explanation:
Introduction / Context:
Programming language similarity does not imply wire-protocol compatibility with a database. This question reinforces that database connectivity requires a driver that implements the database’s protocol and JDBC interfaces, regardless of language similarities.
Given Data / Assumptions:
Concept / Approach:
JDBC drivers translate JDBC calls into the DBMS’s native protocol (Type 4) or into intermediate protocols/libraries (Types 1–3). Language syntax resemblance to C/C++ is irrelevant; without a driver, the JVM has no way to speak the DBMS protocol, authenticate, or marshal data correctly.
Step-by-Step Solution:
Verification / Alternative check:
Attempting Connection without a driver class results in exceptions; adding the proper JDBC driver resolves connectivity.
Why Other Options Are Wrong:
Common Pitfalls:
Assuming language similarity implies binary compatibility; conflating JDBC with generic HTTP APIs.
Final Answer:
Invalid (you still need a JDBC driver to speak the DBMS protocol)
Discussion & Comments