Solved

A Method That Uses the Scanner Class to Obtain Input

Question 28

Multiple Choice

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' 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 JOptionPane 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 IOException even if thrown by a method in a Scanner class

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents