To release a result set object, use the close() method. Implicit release using the garbage collector does not release the resources until the Java stored procedure is terminated.