diff options
Diffstat (limited to 'java/12-error-handling-2/MathsTest7.java')
| -rw-r--r-- | java/12-error-handling-2/MathsTest7.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/java/12-error-handling-2/MathsTest7.java b/java/12-error-handling-2/MathsTest7.java deleted file mode 100644 index f55cfad..0000000 --- a/java/12-error-handling-2/MathsTest7.java +++ /dev/null @@ -1,22 +0,0 @@ -public class MathsTest7 { - - /** - * @param args - */ - public static void main(String[] args) { - Maths m = new Maths(); - int result = 0; - - try { - result = m.factorial(-5); - } catch(MathsException me) { - System.err.println("Factorial method failed"); - return; - } finally { - System.out.println("Inside finally block"); - } - - System.out.println(result); - } - -} |
