adspace
What are object pooling and connection pooling and difference between them?
Answer Posted / Yogendra Pratap Singh
Object pooling is a technique used to reuse objects by keeping them in a pool. Instead of creating new instances each time they're needed, previously used instances are retrieved from the pool and reused. This reduces the overhead associated with object creation and garbage collection.
Connection pooling is a specific type of object pooling, used for database connections. It keeps a pool of open connections to databases so that when a connection is needed, it can be quickly obtained without the time-consuming process of establishing a new one.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers