Which statements about JDBC are true?

  1. JDBC is an API to connect to relational-, object- and XML data sources

  2. JDBC stands for Java DataBase Connectivity

  3. JDBC is an API to access relational databases, spreadsheets and flat files

  4. JDBC is an API to bridge the object-relational mismatch between OO programs and relational


Correct Option: B,C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) JDBC is an API to connect to relational-, object- and XML data sources - This option is incorrect. JDBC is primarily used for connecting to relational databases, not object or XML data sources.

Option B) JDBC stands for Java DataBase Connectivity - This option is correct. JDBC stands for Java DataBase Connectivity and is an API provided by Java for connecting to relational databases.

Option C) JDBC is an API to access relational databases, spreadsheets, and flat files - This option is correct. JDBC can be used to connect to and access relational databases, as well as spreadsheets and flat files.

Option D) JDBC is an API to bridge the object-relational mismatch between OO programs and relational - This option is incorrect. While JDBC can be used in object-oriented programs to interact with relational databases, it is not specifically designed to bridge the object-relational mismatch.

The correct answer is B, C. JDBC stands for Java DataBase Connectivity and is an API used to access relational databases, spreadsheets, and flat files.

Find more quizzes: