How does connection pooling in servlets optimize database interactions?
- By caching database query results
- By establishing a new connection for each request
- By increasing the size of the database
- By reusing existing database connections
Connection pooling optimizes database interactions by reusing existing database connections, reducing the overhead of establishing a new connection for each request.
Loading...
Related Quiz
- In a chat application using WebSockets, when a message is sent to a closed connection, what happens and how should it be handled?
- How would you ensure a filter only processes requests for a specific servlet?
- A secure servlet session is typically identified through a unique _________.
- A servlet handling massive data queries is experiencing performance issues. What optimization technique should be prioritized?
- To handle binary data in a WebSocket, the _________ method is typically implemented.