You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
639 B
31 lines
639 B
package pkg;
|
|
|
|
public class TestTryCatchFinally {
|
|
public void test1(String var1) {
|
|
try {
|
|
System.out.println("sout1");
|
|
} catch (Exception var9) {
|
|
try {
|
|
System.out.println("sout2");
|
|
} catch (Exception var8) {
|
|
;
|
|
}
|
|
} finally {
|
|
System.out.println("finally");
|
|
}
|
|
|
|
}
|
|
|
|
public int test(String var1) {
|
|
try {
|
|
int var2 = Integer.parseInt(var1);
|
|
return var2;
|
|
} catch (Exception var6) {
|
|
System.out.println("Error" + var6);
|
|
} finally {
|
|
System.out.println("Finally");
|
|
}
|
|
|
|
return -1;
|
|
}
|
|
}
|
|
|