When a connection is closed in a connection pool, what actually happens to that connection?
- It is immediately returned to the pool
- It is marked as unavailable
- It is permanently deleted
- It is physically closed
When a connection is closed in a connection pool, it is not physically closed but rather returned to the pool, making it available for reuse. This enhances efficiency by minimizing the need for new connections.
Loading...
Related Quiz
- What is the main purpose of using try-catch blocks in database operations?
- How can a servlet invalidate a cookie that has been sent to the client?
- During peak usage, a web application's response time degrades significantly. Which connection pool setting should be investigated?
- How does a servlet container differentiate between authenticated and unauthenticated users?
- What is the impact of setting a large size for the Java heap space?