o seguinte código:
class Emu{
static String s="-";
public static void main (String[] args){
try{
throw new Exception();
}
catch(Exception e){
try{
try{
throw new Exception();
}
catch(Exception ex){ s+= "ic ";}
throw new Exception();
}
catch(Exception x){ s+= "mc "; }
finally {s+= "mf "; }
}
finally{ s+= "of "; }
System.out.println(s);
}
}
tem como resultado : “-ic mc mf of”.
no entanto, no primeiro bloco try eu tenho throw new Exception();… eu não preciso declarar esta exception para poder utiliza-la ?
