Which of the statement below does not correctly defines the difference between JDBC and ODBC ?

  1. ODBC can be directly used with Java because it uses a C interface

  2. ODBC makes uses of pointers which has been totally removed from JAVA

  3. ODBC is from Microsoft while JDBC is from java applications

  4. ODBC requires manual installation of the ODBC driver manager and driver on all client machines. While for JDBC driver are written in Java and JDBC code is automatically installable, secure and portable on all platforms.


Correct Option: A

AI Explanation

To answer this question, you need to understand the differences between JDBC and ODBC.

Let's go through each option to understand why it is correct or incorrect:

Option A) ODBC can be directly used with Java because it uses a C interface - This option is incorrect because ODBC cannot be directly used with Java. ODBC uses a C interface, which means that to use ODBC with Java, a bridge or translator is required to convert the ODBC calls to Java calls. JDBC, on the other hand, is a native Java API and can be directly used with Java applications.

Option B) ODBC makes use of pointers which has been totally removed from JAVA - This option is incorrect because ODBC does not make use of pointers. Pointers are a concept in C and C++ programming languages, and Java does not support pointers. JDBC, being a native Java API, does not use pointers either.

Option C) ODBC is from Microsoft while JDBC is from Java applications - This option is incorrect because ODBC is not from Microsoft. ODBC stands for Open Database Connectivity, and it is a standard API that allows applications to access data in different database systems. JDBC, on the other hand, is a Java API that provides a standard way to interact with databases in Java applications.

Option D) ODBC requires manual installation of the ODBC driver manager and driver on all client machines. While for JDBC, drivers are written in Java and JDBC code is automatically installable, secure, and portable on all platforms - This option is correct. ODBC requires manual installation of the ODBC driver manager and driver on all client machines. In contrast, JDBC drivers are written in Java, and JDBC code is automatically installable, secure, and portable on all platforms.

The correct answer is A. This option does not correctly define the difference between JDBC and ODBC because ODBC cannot be directly used with Java due to its C interface.

Find more quizzes: