Solved

Int Number; Boolean Done = False;do

Question 46

Multiple Choice

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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions