I understood what is told but plz tell me why
class TooColdException extends RuntimeException{ }
public class Lsmul{
public static void main(
String argv[]){
Lsmul lsm = new Lsmul();
lsm.go();
System.out.println(lsm.aboat());
}
public void go(){
nfl();
}
public int aboat(){
int a;
try{
nfl();
a=5;
return a;
}
catch(TooColdException tce){
System.out.println(tce.getMessage());
return 2;
}
finally
{
a=6;
}
}
public void nfl() throws TooColdException{
System.out.println("seal");
}
}
The output of this program is seal, seal and 5 if the finally is executed the value returned should be 6.