🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Opening a database connection is slow, so open connections are kept and reused
  2. B.It prevents SQL injection
  3. C.It removes the need for a JDBC driver
  4. 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 →