consider this bit of code:
public void foo(){
try{
//some cool statements here
}
finally {
if(session != null){
session.close();
sesssion = null;
}
}
}
Since the session is closed, is the value assigned to session going to make sense? Please provide some valuable insights.