Java - IO - Interview Questions and Answers on InputStream

Q1.  What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

Ans. The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented

Q2.  Which is the Parent class of FileInputStream ?

Ans. InputStream

Q3. Which is the Parent Class of InputStream class?


Q4. Which interfaces are implemented by  InputStream?

Ans.[Closeable,  AutoCloseable]

Q5. What is the package name for  InputStream class?

Q6. InputStream is a / an ...

 a.Abstract Class
 b.Concrete Class

Ans. AbstractClass