← Quiz: JDBC: all 10 questions
Quiz: JDBC · Question 9 of 10
What is the main reason real apps use a connection pool such as HikariCP?
What is the main reason real apps use a connection pool such as HikariCP?
- A.Opening a database connection is slow, so open connections are kept and reused
- B.It prevents SQL injection
- C.It removes the need for a JDBC driver
- D.It caches query results
Answer & explanation
Correct answer: Opening a database connection is slow, so open connections are kept and reused
Borrowing an already-open connection avoids the network and login cost each time.
Can you get the rest right without peeking?
Take the timed Quiz: JDBC quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →