Multiple choice technology

Which packages contain the JDBC classes?

  1. java.jdbc and javax.jdbc

  2. java.jdbc and java.jdbc.sql

  3. java.sql and javax.sql

  4. java.rdb and javax.rdb

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JDBC classes are distributed across java.sql (core JDBC API including Connection, Statement, ResultSet) and javax.sql (optional package including DataSource, ConnectionPool, RowSet). Options A and B incorrectly use 'jdbc' instead of 'sql', and option D invents non-existent 'rdb' packages.