Skip to content

Commit 2f041b4

Browse files
Update finally.java
1 parent 96c6b5c commit 2f041b4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

finally.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
public class finally_1 {
2-
public static void main(String[] args) {
3-
try{
1+
public class finally_1
2+
{
3+
public static void main(String[] args)
4+
{
5+
try
6+
{
47
int data=25/5;
58
}
6-
catch(ArrayIndexOutOfBoundsException e){
9+
catch(ArrayIndexOutOfBoundsException e)
10+
{
711
System.out.println("Arithmetic exception occurs");
812
}
913
finally{System.err.println("hello there");}

0 commit comments

Comments
 (0)