Which of the following is a recommended approach to handle database connections in servlets?

  • Closing connections after each request
  • Connection pooling
  • Opening new connections for each request
  • Using a singleton connection
Connection pooling is a recommended approach for handling database connections in servlets, as it optimizes resource usage and enhances performance.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *