A Java program can handle an exception in several different ways. Which of the following is not a way that a Java program could handle an exception?
A) ignore the exception
B) handle the exception where it arose using try and catch statements
C) propagate the exception to another method where it can be handled
D) throw the exception to a pre-defined Exception class to be handled
E) all of the above are ways that a Java program could handle an exception
Correct Answer:
Verified
Q2: In order to have some code throw
Q3: Which of the following messages passed to
Q4: System.err is a(n)
A) input stream
B) GUI dialog
Q5: Assume Exceptionname is a checked exception. If
Q6: NullPointerException and ArithmeticException are both derived from
Q7: Which of the following is not True
Q8: For the questions below, use the following
Q9: Use the code below to answer the
Q10: The Scanner class provides an abstraction for
Q22: Character streams manage
A) byte-sized data
B) binary data
C)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents