Multiple choice technology programming languages

How can you retrieve information from a ResultSet?

  1. By invoking the method get (..., String type) on the ResultSet, where type is the database

  2. By invoking the method get (..., Type type) on the ResultSet, where Type is an object

  3. By invoking the method getValue (...), and cast the result to the desired java type.

  4. By invoking the special getter methods on the ResultSet: getString (...), get Boolean (...),

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

ResultSet provides type-specific getter methods like getString(), getInt(), getBoolean() to retrieve column values by column name or index. The methods handle type conversion automatically. Options A, B, and C describe non-existent methods - there is no generic get() or getValue() method in ResultSet.