Java Exception Handling (Try-catch)

  • [deleted]
    + 4 comments

    Instead of

    System.out.println("java.util.InputMismatchException");
    

    we can use:

    System.out.println(e.getClass().getName());