Machine-translated by Google. Questions are authored in English.
Top

Discussion

Java and C/C++ are so close that there are no incompatibilities between them. Therefore, a driver is not necessary.

  • A.True
  • B.False

Answer: B

Correct answer: False

The two languages differ in memory management, in object model and in calling conventions, so Java cannot call a C library directly and a driver or a native interface layer is required. This is exactly why the JDBC driver types exist: Types 1 and 2 bridge to native code, and Types 3 and 4 avoid it altogether.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.