Java Exception Handling (Try-catch)

  • + 0 comments

    Here when you use e.getClass().getName(), .getClass() method will be returning the class of the exception and as we have used getName() method. we will get the name of the exception class.

    so here :java.util.InputMismatchException: For input string: "2147483648"

    class name is just "java.util.InputMismatchException"