Java I/O Streams
Java I/O byte streams and character streams including InputStream, OutputStream, Reader, and Writer classes
Questions
How many subclasses of InputStream class are there?
- 9
- 7
- 8
- 6
- 5
Which of the following methods is/are defined in InputStream class of Bytes Stream?
- read(byte[ ] b)
- mark(int limit)
- read()
- both 1 and 2
- all of these
Which of the following methods are defined in OutputStream class?
- flush()
- write(byte[ ] b)
- write(byte[ ] b, int offset, int len) :-
- both 1 and 2
- all of these
How many subclasses of OutputStream class are present in java?
- 9
- 6
- 5
- 8
- 7
Character Stream class is defined by using _____ class hierarchy.
- 7
- 5
- 2
- 4
- None of these
How many subclasses of Writer class are there in java?
- 7
- 6
- 8
- 9
- 5
Which of the following methods is/are defined in Reader class?
- skip(long)
- mark(int limit)
- reset()
- both 1 and 2
- all of these
How many subclasses of Reader class are there in java?
- 9
- 8
- 7
- 6
- 5
Byte stream are defined by using _____ class hierarchy.
- 4
- 3
- 2
- 1
- None of these
Which of the following is/are not the subclasses of Writer class in java?
- CharWriter
- StringWriter
- BufferedWriter
- Both 1 and 2
- Both 1 and 3
Which of the following is/are not the subclasses of Reader class?
- StringReader
- PipeReader
- InputReader
- Both 1 and 2
- Both 1 and 3
Which of the following is/are the subclasses of the OutputStream class?
- ObjectOutputStream
- PipedOutputStream
- ByteOutputStream
- Both 1 and 2
- All of these
Which of the following is/are the subclasses of InputStream class?
- StrinBufferedInputStream
- FilterInputStream
- SequenceInputStream
- Both 2 and 3
- All of these
The stream class can be categorized into how many groups depending upon the data on which they operate?
- 5
- 4
- 3
- 2
- None of these