What is the primary purpose of using a connection pool in database interactions?
- Ensuring database security
- Managing database connections
- Optimizing SQL queries
- Reducing database load
The primary purpose of using a connection pool is to manage and reuse database connections efficiently, reducing the overhead of opening and closing connections for each database interaction.
Loading...
Related Quiz
- How would a servlet handle a situation where both GET and POST requests need to be processed, but different actions are required for each?
- What is the best practice for handling sensitive data in servlet log files?
- In a scenario where a filter chain is used for both compression and encryption, which process should ideally occur first?
- What is the role of a servlet filter in security?
- The __________ interface allows objects to be notified of changes in session lifecycle.