Close the Connection

Steps for creating connection with the database -


Close the Connection -

Once we are done, we can close the connection to database by using close() method of Connection interface. It releases the JDBC resources immediately. It has the following syntax-
void close() throws SQLException

ADS

ADS