Which of these classes defined in java.io and used for file-handling are abstract?
A. InputStream
B. PrintStream
C. Reader
D. FileInputStream
E. FileWriter
A.Only A
B.Only C
C.A and C
D.B and D
Answers
Answered by
7
ANSWER :
OPTION C
Details :
InputStream and Reader are the classes that help in file handling in JAVA .
These two have their own syntaxes .
The syntax of Buffered Reader is almost similar to that of Input Streamer .
They are helpful for taking inputs.
Answered by
0
Option (C) is correct answer.
InputStream and Reader classes defined in java.io and used for file-handling are abstract.
About InputStream and Reader classes :
- The java.io package's InputStream class is an abstract superclass that represents a bytes input stream.
- Because InputStream is an abstract class, it can't be used on its own. Its subclasses, on the other hand, can be used to read data.
- The java.io package's Reader class is an abstract superclass that represents a sequence of characters. Because Reader is an abstract class, it is useless on its own. Its subclasses, on the other hand, can be used to read data.
Similar questions
Hindi,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Chemistry,
1 year ago