lr13 -> task_1 -> e1-e14

This commit is contained in:
2026-05-23 16:50:10 +05:00
parent 7310b240fd
commit 7c4e17e1b1
14 changed files with 230 additions and 0 deletions

18
lr13/task_1/e7.java Normal file
View File

@@ -0,0 +1,18 @@
package lr13.task_1;
public class e7 {
public static void main(String[] args) {
try {
System.out.println("0");
throw new NullPointerException("ошибка");
} catch (NullPointerException e) {
System.out.println("1");
try {
throw new ArithmeticException();
} catch (ArithmeticException e2) {
System.out.println("2");
}
}
System.out.println("3");
}
}