Example:
try(ResultSet rs = DriverManager.getConnection(url, us, pw).createStatement().executeQuery(sql)) {
    //mycode
}
I don't have any reference to Connection or Statement, will they be closed too and if they do what is the order?
thanks
 
    