[Logo]
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
Forums Register Login
InputStream
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.

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

Aruna
Your mind is under my control .... your will is now mine .... read this tiny ad
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo


This thread has been viewed 685 times.

All times above are in ranch (not your local) time.
The current ranch time is
May 22, 2019 10:38:55.