class Test23
{
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 ( ) ) ;
}
}
the output i got is
---------- Javac ----------
Test23.java:17: warning: finally clause cannot complete normally
}
^
1 warning
-------------------------------------------
But in the mock question the answer is given as "Peace " would be printed.
Please help me out in this