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:
Verified
Q23: Programmers can define their own Exceptions by
Q24: A try statement must have at least
Q25: To implement the KeyListener interface, you must
Q26: If an exception is thrown and is
Q27: When a program terminates because a thrown
Q29: The difference between a checked and an
Q30: A mnemonic is
A) always a single character
B)
Q31: A Timer object generates _ at regular
Q32: A disabled component is
A) one that is
Q33: PrintWriter is a better output stream class
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