Java OCA OCP Practice Question 2175

Question

Which of the following are JDBC interfaces in the java.sql package?.

  • I. Driver
  • II. DriverManager
  • III. Query
  • IV. ResultSet
  • A. I, III
  • B. I, IV
  • C. II, III
  • D. II, IV
  • E. I, II, III
  • F. I, II, IV


B.

Note

Driver, Connection, Statement, and ResultSet are the four key interfaces you need to know for JDBC.

DriverManager is a class rather than an interface.

Query is not used in JDBC.

Since only Driver and ResultSet are interfaces in the list, Option B is the answer.




PreviousNext

Related