We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbbfb31 commit acc63f7Copy full SHA for acc63f7
Exception Handling/ControlFlow2.java
@@ -0,0 +1,16 @@
1
+class ControlFlow2 {
2
+ public static void main(String[] args) {
3
+ int d;
4
+ try {
5
+ d = 0;
6
+ int a = 42 / d;
7
+ System.out.println("Inside Try block");
8
+ } catch (ArithmeticException e) {
9
+ System.out.println(e);
10
+ }
11
+ finally{
12
+ System.out.println("After catch");
13
14
+ System.out.println("Outside Try-catch-finally block");
15
16
+}
0 commit comments