Quick Question about Java File I/O

Tarrant64

Diamond Member
Sep 20, 2004
3,203
0
76
I'm studying for a Java exam, and I'm trying to find out whether or not ObjectInputStream/ObjectOutputStream is human readable. I'm pretty sure on the exam I will be asked about FileInput/OutputStream, DataInput/OutputStream, BufferedReader, Printwriter, and ObjectInput/OutputStream.

I know the first two aren't human readable, and that BufferedReader/PrintWriter are human readable. But what about ObjectInputStream and ObjectOutputStream?

Thanks for the help!
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
I think it depends on just how much of a geek you are :p

But a rule of thumb might be that *Stream is non-readable (cuz it's binary) and *Reader/*Writer is readable (cuz it's character data). In practise, it all depends on what you send down those pipes, you could easily make nonsense character data and you could make readable binary.