Home » JAVA Programming » Exceptions » Question
  1. What exception thrown by parseInt() method?
    1. NullPointerException
    2. NumberFormatException
    3. ArithmeticException
    4. ClassNotFoundException
    5. None of these
Correct Option: B

parseInt() method parses input into integer. The exception thrown by this method is NumberFormatException.



Your comments will be displayed only after manual approval.