Skip to content
Sharp

SQL for Java Devs · interview question

What should a repository method mainly encapsulate?

Multiple choiceEasychapter-8-curatedpremiumsql-for-java-devsrepository-pattern
Choose one answer
Answer and explanation

Correct answer

C. SQL access and row mapping details

Why

A repository should hide query details and mapping mechanics behind intention-revealing methods. It should not absorb the full business orchestration of payment, inventory, and checkout policy.

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 →