How does ADO.NET handle resource management for connections that are not explicitly closed by the application?

  • Automatic garbage collection
  • Connection pooling
  • Finalization process
  • Timeout mechanism
ADO.NET handles resource management for connections that are not explicitly closed by the application by employing connection pooling. When a connection is not explicitly closed, it is returned to the connection pool instead of being immediately disposed of. This allows the connection to be reused by subsequent requests, improving performance and resource utilization.
Add your answer
Loading...

Leave a comment

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