The Scanner.nextInt method throws an unchecked ____ if a user enters an input that is not an integer.
A) InputMismatchException
B) NumberFormatException
C) IllegalArgumentException
D) IOException
Answer:
A) Input Mismatch Exception
Step-by-step explanation:
The Scanner.nextInt method throws an unchecked Input Mismatch Exception if a user enters an input that is not an integer.
6.0m questions
7.9m answers