PrepAway - Latest Free Exam Questions & Answers

which of the following methods?

Under JDBC, you can move the cursor within the resultset to a particular specified
row using which of the following methods?

PrepAway - Latest Free Exam Questions & Answers

A.
absolute

B.
jump

C.
goto

D.
moveto

E.
nextset

Explanation:
According to the online Java tutorial provided by Sun at java.sun.com
You can move the cursor to a particular row in a ResultSet object. The methods
first , last, beforeFirst, and afterLast move the cursor to the position their names
indicate. The method absolute will move the cursor to the row number indicated in
the argument passed to it. If the number is positive, the cursor moves the given
number from the beginning, so calling absolute(1. puts the cursor on the first row. If
the number is negative, the cursor moves the given number from the end, so calling
absolute(-1. puts the cursor on the last row.


Leave a Reply