Hint

Class NullPointerException is a child class of class Exception, hence an object of type NullPointerException is also of type Exception. Therefore, will an object of type NullPointerException be caught by catch (Exception e)? If the object is caught by catch (Exception e), then can the second catch statement ever be executed?