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...

Which of the following statements about arrays are true?

I. Arrays are groups of variables that all have the same type. II. Elements are located by index III. The length of an array c is determined by the expression c.Length. IV. The zeroth element of array c is specified by c(0). a) I, III, and IV. b) I, II, and IV. c) both III and IV. d) I, II, III, and IV.

Computer Science & Information Technology

A(n) ________ chart is best for showing trends in data over time

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can use the clear property to position the contents of an element below another element that has been floated; this is also called ____________________ an element.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ____________________ creates the content and some basic Web pages that are not stylized.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology