While unconnecting from the database in JDeveloper is a simple task, it is not a process by itself in a Java application. In the application, you must explicitly close all ResultSet
, Statement
, and Connection
objects after you are through using them. When you close the Connection
object, you are unconnected from the database. The close
methods clean up memory and release database cursors. Therefore, if you do not explicitly close ResultSet
and Statement
objects, serious memory leaks may occur, and you may run out of cursors in the database. You must then close the connection.
This chapter includes the following sections: