lr13 -> task_1 -> e1-e14
This commit is contained in:
17
lr13/task_1/e3.java
Normal file
17
lr13/task_1/e3.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package lr13.task_1;
|
||||
|
||||
public class e3 {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
System.out.println("0");
|
||||
throw new RuntimeException("ошибка");
|
||||
} catch (NullPointerException e) {
|
||||
System.out.println("1");
|
||||
} catch (RuntimeException e) {
|
||||
System.out.println("2");
|
||||
} catch (Exception e) {
|
||||
System.out.println("3");
|
||||
}
|
||||
System.out.println("4");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user