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

Respuesta :

Answer:

A) Input Mismatch Exception

Explanation:

The Scanner.nextInt method throws an unchecked Input Mismatch Exception if a user enters an input that is not an integer.

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

ACCESS MORE