A) the last catch clause that can handle the exception.
B) each catch clause that can handle the exception.
C) the first catch clause that can handle the exception.
D) the statement that appears immediately after the catch block.
Correct Answer
verified
Multiple Choice
A) File and Scanner.
B) BinaryFileWriter and BinaryDataWriter.
C) FileOutputStream and DataOutputStream.
D) File and PrintWriter.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) -1
B) 0
C) 1
D) 99
Correct Answer
verified
Multiple Choice
A) unchecked and checked.
B) runtime and compile-time.
C) critical and nominal.
D) static and dynamic.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) multi-catch
B) catch templates
C) multi-try
D) catchAll
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) exception
B) default exception handler
C) exception handler
D) thrown class
Correct Answer
verified
Multiple Choice
A) Error class or the RuntimeException class.
B) Error class or the Exception class.
C) Error class.
D) Exception Class or the RuntimeException class.
Correct Answer
verified
Multiple Choice
A) it must always be handled by the method that throws it.
B) it must be handled by the program or by the default exception handler.
C) it may be ignored.
D) the program terminates even if the exception is handled.
Correct Answer
verified
Multiple Choice
A) File and Scanner.
B) File and PrintWriter.
C) BinaryFileReader and BinaryDataReader.
D) FileInputStream and DataInputStream .
Correct Answer
verified
Multiple Choice
A) IOException
B) Exception
C) Error
D) RunTimeException
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) Serial
B) Serializable
C) ObjectOutputStream
D) Writable
Correct Answer
verified
Multiple Choice
A) a try clause in its header
B) a catch clause in its header
C) a finally clause in its header
D) a throws clause in its header
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) can handle all throwable objects by using a polymorphic reference for the parameter.
B) can handle all exceptions that are instances of the Exception class or one of its subclasses.
C) can handle all exceptions that are instances of the Exception class, but not its subclasses.
D) causes a compiler error.
Correct Answer
verified
Multiple Choice
A) the exception will have a null message.
B) the exception will have a message containing the address of the exception.
C) the exception will a default message describing the exception.
D) a compiler error will occur.
Correct Answer
verified
Showing 1 - 20 of 40
Related Exams