Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
JDBC is the standard Java API for connecting to relational databases. It defines interfaces for connections, statements, prepared statements, result sets, and drivers, enabling vendor-neutral data access.
Given Data / Assumptions:
Concept / Approach:
Confirm the acronym: JDBC = Java Database Connectivity. It is analogous to ODBC in concept, but for Java and with its own driver types and interfaces.
Step-by-Step Solution:
Create a JDBC URL and load a driver (driver auto-loading in modern Java).Obtain a Connection via DriverManager or a DataSource.Prepare and execute SQL using Statement/PreparedStatement.Process ResultSet and manage transactions with commit/rollback.Close resources in finally/try-with-resources.
Verification / Alternative check:
Check the official Java documentation where the phrase “Java Database Connectivity” is defined.
Why Other Options Are Wrong:
“Java Data Connector” and “Java Datastore Connectivity” are not official expansions.
Common Pitfalls:
Confusing JDBC with JPA/Hibernate; mixing driver types and connection URLs.
Final Answer:
Correct
Discussion & Comments