Sunday, 17 April 2011

What are the possible combination to write try, catch finally block?

try{

//lines of code that may throw an exception
}catch(Exception e){
//lines of code to handle the exception thrown in try block
}finally{
//the clean code which is executed always no matter the exception occurs or not.
}

No comments:

Post a Comment