Skip to content
Sharp

SQL for Java Devs · interview question

Why do teams use a connection pool in a JDBC application in production code?

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

Correct answer

C. It reduces the overhead of frequently opening and closing connections.

Why

A connection pool manages a pool of database connections, reducing the performance overhead associated with opening and closing connections for every database operation. This leads to improved application performance and resource utilization.

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 →