Programming - Streams and Files
You Are Here :: Home > JAVA > Streams and Files - General Questions
1.
A ________________ is defined as a continuous flow of data from one place to another
A.
stream
B.
file
C.
ioexception
D.
flow
Answer: Option A
Explanation:
A Stream is defined as a continuous flow of data from one place to another.Here the flow of data is in between the program and peripherals.
2.
The Java package that supports streams is __________________________.
A.
java.lang
B.
java.io
C.
java.awt
D.
java.sql
Answer: Option B
Explanation:
The Java package that supports streams is java.io.it contains many classes using which we make the data transfer.
3.
How many categories the classes in the iopackage can be classified?
Answer: Option B
Explanation:
Depending upon the representation of the data to be transferred,the classes in the io package are classified into two categories.
i) Byte Oriented class ii) Character Oriented Classes
4.
________________ class is the super class of all the classes which are used to read data in the form of bytes.
A.
Input Stream
B.
Output Stream
C.
Reader Class
D.
Writer Class
Answer: Option A
Explanation:
Input Stream class is the super class of all the classes which are used to read data in the form of bytes.
5.
_________________ class is the super class of all the classes which are used to write data in the form of bytes.
A.
Input Stream
B.
Output Stream
C.
Reader Class
D.
Writer Class
Answer: Option B
Explanation:
Output Stream class is the super class of all the classes which are used to write data in the form of bytes.
6.
_________________ is the super class of all the classes which are used to read data in the form of characters.
A.
Input Stream
B.
Output Stream
C.
Reader Class
D.
Writer Class
Answer: Option C
Explanation:
Reader Class is the super class of all the classes which are used to read data in the form of characters.
next »