JDBC: Does the connection break if i lose reference to the Connection object?
- by wretrOvian
Hi.
If i have the following method -
public static void C() {
Connection con = DriverManager.getConnection();
.... // code
return;
}
and i dont call con.close() , will the connection terminate automatically once the method returns?