From ae4cf7c9f0a0b90d02166b43402e67b7d4ad4dca Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sun, 22 Feb 2026 19:31:37 +0530 Subject: Renamed directory 12-error-handling-2 to 11-error-handling-2 --- java/12-error-handling-2/MathsTest2.java | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 java/12-error-handling-2/MathsTest2.java (limited to 'java/12-error-handling-2/MathsTest2.java') diff --git a/java/12-error-handling-2/MathsTest2.java b/java/12-error-handling-2/MathsTest2.java deleted file mode 100644 index 4aa8b59..0000000 --- a/java/12-error-handling-2/MathsTest2.java +++ /dev/null @@ -1,27 +0,0 @@ -public class MathsTest2 { - - /** - * @param args - */ - public static void main(String[] args) { - Maths m = new Maths(); - int result = 0; - - try { - result = m.factorial(-5); - } catch(MathsException me) { // Catching a specific exception - System.err.println("Caught a MathsException"); - } catch(Exception e) { // Catching the super type - System.err.println("Caught an Exception"); - } - - try { - result = m.factorial(-5); - } catch (MathsException | ArrayIndexOutOfBoundsException e) { // Java SE 7 - - } - - System.out.println(result); - } - -} -- cgit v1.2.3