19 lines
414 B
Java
19 lines
414 B
Java
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());
|
|
}
|
|
} |