10000 Added try and catch block in Excepton1 class for exception handling · ravitomar7/Java_Programming_CCVT@802e377 · GitHub
[go: up one dir, main page]

Skip to content

Commit 802e377

Browse files
RIYA AGRAHARIRIYA AGRAHARI
RIYA AGRAHARI
authored and
RIYA AGRAHARI
committed
Added try and catch block in Excepton1 class for exception handling
1 parent d54b594 commit 802e377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CCVT_Code_Distribute/src/com/rt/exceptionexamples/Exception1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static void main(String args[]) {
99
}
1010
catch(ArithmeticException e){
1111
System.out.println("Error:Division By zero not possible");
12-
e.printStackTrace(); //for displaying error message(debugging option for developer)
12+
//e.printStackTrace(); //for displaying error message(debugging option for developer)
1313
}
1414
}
1515
}

0 commit comments

Comments
 (0)
0