As for the subject: What are the streams which at the end of file don't throws EOFException?
Directly from
this java oracle tutorial (Programme II level OCPJP7):
Notice that DataStreams detects an end-of-file condition by catching EOFException, instead of testing for an invalid return value. All implementations of DataInput methods use EOFException instead of return values.
I thought all the streams once reached the end of the file would throw an EOFException.
Which one does not?
Thanks in advance.