Multiple choice technology architecture

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

The core JDBC API is in the java.sql package, containing interfaces like Connection, Statement, and ResultSet. The javax.sql package provides extended JDBC features like DataSource and connection pooling. Options with 'java.jdbc' are incorrect - the package structure is java.sql, not java.jdbc.