Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is it required to null the connection object after closing it.

843854Feb 14 2003 — edited Feb 19 2003
I have seen a lot of people using "conn = null;" after closing the connection.

Why is this required?

closing the connection with "conn.close();" should release the underlying connection to the database. am i wrong?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2003
Added on Feb 14 2003
17 comments
599 views