🎴 Flashcard Mode
Java I/O Streams
Card1 / 14
Mastered0
Review0
QuestionClick to flip
How many subclasses of InputStream class are there?
AnswerClick to flip back
A
7
💡 Explanation:
This is the correct answer. There are 7 subclasses of InputStream class. These are -
1) FileInputStream - For reading bytes from a file
2) ObjectInputStream - For readin objects and primitive data types from input stream
3) SequenceInputStream - For readin from a sequence of streams
4) ByteArrayInputStream - For Stream that reads a byte array
5) pipedInputStream - For reading from a piped stream
6) FilterInputStream - For filtering input from existing stream
7) StringBufferInputStream - For reading from a string