lr13 -> task_1 -> e1-e14
This commit is contained in:
19
lr13/task_1/e8.java
Normal file
19
lr13/task_1/e8.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package lr13.task_1;
|
||||
|
||||
public class e8 {
|
||||
public static int m() {
|
||||
try {
|
||||
System.out.println("0");
|
||||
throw new RuntimeException();
|
||||
} catch (RuntimeException e) {
|
||||
System.out.println("1");
|
||||
} finally {
|
||||
System.out.println("2");
|
||||
}
|
||||
return 3;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(m());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user