A method that uses the Scanner class to obtain input does not require either catching or throwing an IOException. This is because
A) the Scanner class does not call upon any classes that throw checked exceptions
B) the Scanner class's methods call input methods in try statements and catch IOExceptions so that they are handled directly in the Scanner class
C) the Scanner class uses dialog boxes instead of java.io classes so that it does not have to deal with IOExceptions
D) the Scanner class overrides the class IOException making it an unchecked exception
E) None of the above; methods do require handling IOExceptions even if thrown by a method in a Scanner class
Correct Answer:
Verified
Q29: Explain or provide an example showing how
Q30: When a program terminates because a thrown
Q31: What are the three standard I/O streams
Q32: Explain or provide an example showing how
Q33: Assume Exceptionname is a checked exception. If
Q35: The term "exception propagation" means
A) an exception
Q36: Explain or provide an example showing how
Q37: A processing stream is a data stream
Q38: Explain or provide an example showing how
Q39: Explain what happens if an exception is
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