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:

Verified
Correct Answer:
Verified
Q6: Assume we have a RandomAccessFile object, file,
Q16: Which of the following classes are related
Q28: In Java, the byte type is a(n)
Q40: Caesar cipher uses a shift of each
Q45: Readers and writers access sequences of _.<br>A)
Q49: Which methods are not in the Serializable
Q61: In which of the following modes can
Q64: Which file storage method stores data in
Q66: Which class is used for input of
Q80: Which method moves the file pointer in