Java OCA OCP Practice Question 2019

Question

What is the name of a concrete class that implements Statement and is included in the core JDK?

A.    CallableStatement
B.    PreparedStatement
C.    StatementImpl
D.   None of the above


D.

Note

CallableStatement and PreparedStatement are interfaces that extend the Statement interface.

A database driver is required to provide the concrete implementation class of Statement rather than the JDK.

This makes Option D correct.




PreviousNext

Related