Skip to content
Sharp

SQL for Java Devs · interview question

Which method is used to check if the ResultSet has more rows?

Multiple choiceEasychapter-8-curatedpremiumsql-for-java-devsresultsets-and-mapping
Choose one answer
Answer and explanation

Correct answer

D. Next()

Why

The next() method moves the cursor to the next row and returns false if there are no more rows, making it useful for iteration.

Test yourself on SQL for Java Devs

A free test with instant, explained results. No account needed.

Start free test
All SQL for Java Devs questions →