Updated on 2025-02-27 GMT+08:00

Closing a Database Connection

After you complete required data operations in the database, close the database connection.

You can call the close method to close the connection.

conn.close();