16 lines
395 B
Java
16 lines
395 B
Java
package lr13.task_1;
|
|
|
|
public class e6 {
|
|
public static void main(String[] args) {
|
|
try {
|
|
System.out.println("0");
|
|
throw new NullPointerException("ошибка");
|
|
} catch (ArithmeticException e) {
|
|
System.out.println("1");
|
|
} catch (Exception e) {
|
|
System.out.println("2");
|
|
}
|
|
System.out.println("4");
|
|
}
|
|
}
|