7.4
package sevenwork4;
public class Test {
public static void aMethod() throws Exception{
try {
throw new Exception();
}
catch(Exception e) {
System.out.println("exception000");
}
finally {
System.out.println("finally111");
}
}
public static void main(String args[]) {
try {
aMethod();
}
catch(Exception e) {
System.out.println("exception");
}
System.out.println("finished");
}
}
public static void aMethod() throws Exception{
try {
throw new Exception();
}
catch(Exception e) {
System.out.println("exception000");
}
finally {
System.out.println("finally111");
}
}
public static void main(String args[]) {
try {
aMethod();
}
catch(Exception e) {
System.out.println("exception");
}
System.out.println("finished");
}
}