CIW Exam Questions

which of the following?

With JDBC, the requested data are usually contained in which of the following?

A.
DriverLib

B.
DriverManager

C.
Connection

D.
Statement

E.
PreparedStatement

F.
ResultSet

G.
Types

Explanation:
Quoted directly from Sun’s Java document site at http//developer.java.sun.com/
As you will see in this course, you pass a Driver to the DriverManager and then
obtain a Connection. A Statement, PreparedStatement, or CallableStatement is then
created and used to update the database or execute a query. A query returns a
ResultSet containing the requested data, which is retrieved by Type.
DatabaseMetaData and ResultSetMetaData classes are available to provide
information about a database or a ResultSet.