Skip to content
Sharp

SQL for Java Devs · interview question

In JDBC, how can you optimize the performance of repeated database reads?

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

Correct answer

B. Use connection pooling

Why

Connection pooling optimizes the performance of database operations by reusing existing connections rather than opening a new one for each query. This reduces overhead and improves efficiency.

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 →