Search your topic here

CLOSE THE DATABASE CONNECTION

CLOSE THE DATABASE CONNECTION:

It is not necessary to close the connection, but open database can cause problems, so its better to close the database connection.
For this close( ) method is used.

Syntax:
stmt.close( );
Here, stmt is statement object to be closed.

cn.close( );

Here, cn is the connection object to be closed.

LEAVE A REPLY