posted 16 years ago
I don't know what the value is, but it shouldn't be too hard to test. All you need to do is make a loop that keeps doing a readObject() on a stream. Give it a file to read and print the results of each readObject() to the screen. When the stream runs out you'll see exactly what the value is. My hunch is that it throws an EOFException.
Originally posted by raddikrishna kittur:
HI friends ,
can anybody tell me the return value when Object readObject() reaches the endof a stream .My need is i have written stauts of 5 objects into a file I want to read back them .
Thanks in advance