To retrieve information from a database with JDBC, you send SQL SELECT
statements to the database via which of the following methods?
A.
Statement.ResultSet
B.
Statement.object
C.
Statement.ResultGet
D.
Statement.executeQuery
E.
None of the above
Explanation:
Quoted directly from Sun’s Java document site at
http//developer.java.sun.com/ To retrieve information from a database, you send
SQL SELECT statements to the database via the Statement.executeQuery method,
which returns the requested information as rows of data in a ResultSet object. A
default ResultSet is examined row by row using ResultSet.next(. ( to position to the
next row . and ResultSet.getXXX(. to obtain individual column data.