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.

Related topics

Professor Jayesh video tutorial

Please use contact page in this website if you find anything incorrect or you want to share more information about the topic discussed above.