Given that myFile.txt contains:
What is the result?
A.
1: First
2: Second
3: Third
B.
1: First
2: Second
3: First
C.
1: First
2: First
3: First
D.
IOExcepton
E.
Compilation fails
Explanation:
BufferedReader: mark() : Marks the present position in the stream. Subsequent calls to reset() will
attempt toreposition the stream to this point.
reset() : Resets the stream to the most recent mark.
!! After last Line is read (readLine()), a trial to reset() throws IOException : Mark invalid
B