qual o resultado do programa? nao vale compilar hehehhe
public class Teste{
public Teste(){
m1();
m2();
try{
m3();
}
catch (Exception erro){}
}
public static void main(String args[]){
new Teste();
}
public void m1(){
try{
System.out.println("m1");
return;
}
catch (Exception erro){}
finally{
System.out.println("finally m1");
}
}
public void m2(){
try{
System.out.println("m2");
throw new Exception();
}
catch (Exception erro){
System.out.println("catch m2");
return;
}
finally{
System.out.println("finally m2");
}
}
public void m3() throws Exception{
try{
System.out.println("m3");
throw new Exception();
}
catch (Exception erro){
throw new Exception();
}
finally{
System.out.println("finally m3");
}
}
}