Skip to content

Commit 249271e

Browse files
committed
Experiment 7_2
1 parent f098622 commit 249271e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import java.util.*;
2+
public class Exp7_2 {
3+
public static void main(String[] args) {
4+
int a=10;
5+
int b=0;
6+
try {
7+
int c = a/b;
8+
}
9+
catch(ArithmeticException e){
10+
System.out.println("Arithmetic Exception!! Divide by Zero");
11+
}
12+
13+
}
14+
15+
}

0 commit comments

Comments
 (0)