Nojin Kokkatt

Greenhorn
+ Follow
since Apr 14, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nojin Kokkatt

Thank you Stephan for your quick response . But I have one more doubt , if the connection parameter close  is it automatically close the Statement and result set ?
     

I know the safe pattern in Java is to close ResultSet, PreparedStatement, and Connection in order in a finally block.But I want to know what happened when we set null for ResultSet and PreparedStatement object in between two query execution. I highlighted the code that I set as null. Is this cause any resource leakage ?