What class allows you to read objects directly from a stream?

What class allows you to read objects directly from a stream?

Memo
Views: 1052 | Community Opinion: 2

Tags..  Java Classes  Core Java Interview  Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Jaasmin Said..

The ObjectInputStream class supports the reading of objects from input streams.




90-p0 Said..

opiiiiiiiiiiiiiiiiiiiiiiiiiiiiii0-9op[op[op[op[iopiopkip[
Answer: The RandomAccessFile class supports simultanous reading and writing from the same file. Just open it in "rw" mode:
RandomAccessFile raf =
new RandomAccessFile("filename.txt", "rw");
Use skipBytes() to move to where you wish to read/write.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: