Multiple choice technology programming languages

What does session.createQuery("Query").scroll() return ?

  1. a) ListResultSet

  2. b) ResultSet

  3. c) ScrollableResultSet

  4. d) ScrollableResult

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

createQuery().scroll() returns ScrollableResult, not ResultSet types. ScrollableResult allows cursor-like navigation over large result sets without loading everything into memory. ListResultSet is not a Hibernate interface.