Hi, pls check out the following code
class Test{
static
String raid(){
try
{
throw new Exception();
}
catch (Exception e)
{
int i = 1 / 0 ;
return "Error";
}
finally
{
return "Peace";
}
}
public static void main(String args[]){
System.out.println(raid());
}
}
Questions:
1) what will happen to the exception(1/0) raised inside the catch block
2) is it is more than enough to have a return statement in a finally block
( i think so bcos any way it will get executed -- just to confirm)
thanks for the reply