D
dk
suppose I have code anippet
catch(myException) {
//some code
return System.out.println("hi 1 ");
}finally{
System.out.println("hi 2 ");
}
and once the execution reaches the catch block then what would be the
order of print statements
would it be hi2 hi1 and if so then why?
catch(myException) {
//some code
return System.out.println("hi 1 ");
}finally{
System.out.println("hi 2 ");
}
and once the execution reaches the catch block then what would be the
order of print statements
would it be hi2 hi1 and if so then why?