This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes InputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "InputStream" Watch "InputStream" New topic
Author

InputStream

Aru
Ranch Hand

Joined: Jul 20, 2000
Posts: 112
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
N Mukherjee
Ranch Hand

Joined: Jun 08, 2000
Posts: 141
Hi aruna,
I think all four except "string" option are correct.
Any comments?
regards,
NM


"Knowledge is Power"****************<A HREF="http://www.geocities.com/nityananda_mukherjee" TARGET=_blank rel="nofollow">THREAD/SCJP RESOURCES</A>
Sachin Kombrabail
Greenhorn

Joined: Aug 28, 2000
Posts: 14
The InputStream is an abstract class whose subclasses are
ByteArrayInputStream, FileInputStream, FilterInputStream, InputStream, ObjectInputStream, PipedInputStream, SequenceInputStream, StringBufferInputStream
Aru
Ranch Hand

Joined: Jul 20, 2000
Posts: 112
Hello,
But the answer given is 1,2,& 3....... ?

Aruna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: InputStream
 
Similar Threads
File Reading Error
help with a design approach
Giving a URL for File
How to read closed inputStream
file Serialization