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);Which exception-handling technique is the code in the accompanying figure using?
A. Terminate the program.
B. Fix the error and continue.
C. Log the error and continue.
D. None of the above.
Answer: B
Computer Science & Information Technology
You might also like to view...
A(n) ________ is a prebuilt document with placeholders and formatting already in place
Fill in the blank(s) with correct word
Computer Science & Information Technology
The contents of the ____ parameter appear on the ComboBox instance on the Stage.
A. prompt B. ask C. help D. choose
Computer Science & Information Technology