Skip to content
Sharp

SQL for Java Devs · interview question

Why can using the Repository pattern to abstract JDBC logic in terms of code maintainability become a problem in practice?

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

Correct answer

A. Increased complexity in mapping domain models

Why

While the Repository pattern abstracts data access, it may require additional layers for mapping domain models to database records, increasing complexity. Proper abstraction can mitigate this, but it requires careful design.

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 →