6 years ago in JDBC

How can you retrieve information from a ResultSet?

[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(...)
Loading...
Next Question

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 729
Correct 134
Incorrect 148
Viewed 447

Answers

Guest
Guest
Adarsh gupta
Adarsh gupta - 1 month ago

Adarsh gupta is saying By invoking the method getValue(...), and cast the result to the desired Java type. is correct answer

Rohan Rana
Rohan Rana - 1 month ago

Rohan Rana is saying By invoking the special getter methods on the ResultSet: getString(...), getBoolean (...), getClob(...) is correct answer

aman roy
aman roy - 1 month ago

aman roy is saying By invoking the method getValue(...), and cast the result to the desired Java type. is correct answer

Gagan Gupta
Gagan Gupta - 1 month ago

Gagan Gupta is saying By invoking the special getter methods on the ResultSet: getString(...), getBoolean (...), getClob(...) is correct answer

DISHANT PAL
DISHANT PAL - 1 month ago

DISHANT PAL is saying By invoking the method get(..., Type type) on the ResultSet, where Type is an object which represents a database type is correct answer

Related Questions

What happens if you call deleteRow() on a ResultSet object?

  • [A] The row you are positioned on is deleted from the ResultSet, but not from the database.
  • [B] The row you are positioned on is deleted from the ResultSet and from the database
  • [C] The result depends on whether the property synchronizeWithDataSource is set to true or false
  • [D] You will get a compile error: the method does not exist because you can not delete rows from a ResultSet

Which of the following statements is false as far as different type of statements is concern in JDBC?

  • [A] Regular Statement
  • [B] Prepared Statement
  • [C] Callable Statement
  • [D] Interim Statement

Which packages contain the JDBC classes?

  • [A] java.jdbc and javax.jdbc
  • [B] java.jdbc and java.jdbc.sql
  • [C] java.sql and javax.sql
  • [D] java.rdb and javax.rdb

How can you execute a stored procedure in the database?

  • [A] Call method execute() on a CallableStatement object
  • [B] Call method executeProcedure() on a Statement object
  • [C] Call method execute() on a StoredProcedure object
  • [D] Call method run() on a ProcedureCommand object