Closing JDBC resources when using connection pool means that you just give it back to the pool. Actually connection pool manages all the JDBC resources in case of opening and closing them. So when you open/close a resource you just push/pop it from the pool’s stack. Yes I told you the stack actually stack is one of that mechanisms of implementing a connection pool.