lr13 -> task_1 -> e1-e14
This commit is contained in:
18
lr13/task_1/e7.java
Normal file
18
lr13/task_1/e7.java
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user