Forums Register Login
Hi All,
I think the answer to the below question is
b. A file.
I'm I right ? What about the others ? ARe they not.

Which of these can act as a source for an input stream as well as a destination for an output stream?
a. A network Connection
b. A file
c. A pipe
d. A string
e. An array of chars.

Hi aruna,
I think all four except "string" option are correct.
Any comments?
The InputStream is an abstract class whose subclasses are
ByteArrayInputStream, FileInputStream, FilterInputStream, InputStream, ObjectInputStream, PipedInputStream, SequenceInputStream, StringBufferInputStream
But the answer given is 1,2,& 3....... ?

I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java

This thread has been viewed 654 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 16, 2019 04:47:25.