File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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