int number;boolean done = false;do { try { System.out.print("Enter an integer: "); number = console.nextInt(); System.out.println(); done = true; System.out.println("number = " + number); } catch (InputMismatchException imeRef) { str = console.next(); System.out.println("Exception
" + imeRef.toString() + " " + str); }} while (!done);What is the most likely type of exception in the code in the accompanying figure?
A. IllegalArgumentException
B. InputMismatchException
C. FileNotFoundException
D. NumberFormatException
Answer: B
You might also like to view...
Communication over the copper wire used in DSL technologies is ____.
A. half-duplex B. simplex C. full-duplex D. reflex
Usually, buttons have at least ____ states.
A. two B. three C. four D. six
What key is often used in a form to advance from one field to another?
A) Shift Tab B) Right Arrow key C) Tab D) Space bar
It is important to ____ the line in the code editing window where you want to insert a code snippet to produce the shortcut menu in the accompanying figure.
A. click B. double-click C. right-click D. mouse over