Solved

Which Statement Is True Regarding the Following Code, Assuming Reader

Question 30

Multiple Choice

Which statement is true regarding the following code, assuming reader is a FileInputStream object? char ch = (char) reader.read() ;
I you cannot determine if you have reached the end of input
II this code will throw an exception if we are at the end of input
III read returns an int, so the cast is illegal


A) I
B) II
C) III
D) I and II

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