Skip to content
Sharp

SQL for Java Devs · interview question

Which interface does ResultSet implement?

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

Correct answer

C. AutoCloseable

Why

ResultSet implements AutoCloseable, allowing it to be used in try-with-resources statements to ensure proper closure and resource management.

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 →