posted 17 years ago
Hi All ,
code --
try{
int a=2/0;
}catch(Exception e){
e.printStackTrace();
}finally{
System.out.println("Exception");
}
After running this I get O/p:
Exception
Excetion Trace
Is this the way it shud work ,,
Acc to me first catch will be done and then finally block
But o/p is opposite to wat I m thinking .
Can anyone correct me If I m wrong