Thursday, 6 September 2012

How can you retrieve information from a ResultSet? | JDBC

A. By invoking the method get(..., String type) on the ResultSet, where type is the database type
B. By invoking the method get(..., Type type) on the ResultSet, where Type is an object which represents a database type
C. By invoking the method getValue(...), and cast the result to the desired Java type.
D. By invoking the special getter methods on the ResultSet: getString(...), getBoolean (...), getClob(...),...

Ans:   D

No comments: