Programming - Streams and Files
You Are Here :: Home > JAVA > Streams and Files - General Questions
7.
__________________ is the super class of all the classes which are used to write data in the form of characters.
A.
Input Stream
B.
Output Stream
C.
Reader Class
D.
Writer Class
Answer: Option D
Explanation:
Writer Class is the super class of all the classes which are used to write data in the form of characters.
8.
How can you represent the addresses?
A.
By creating objects of those classes which contain the addresses of the sources/destinations
B.
By creating classes of those objects which contain the addresses of the sources/destinations
C.
By creating objects of those classes which contain the addresses of the variables
D.
By creating subclasses of those classes which contain the addresses of the sources/destinations
Answer: Option A
Explanation:
By creating objects of those classes which contain the addresses of the sources/destinations
9.
_________________ classes are nothing but the byte oriented classes and character oriented classes
A.
This
B.
Those
C.
Static
D.
non-static
Answer: Option B
Explanation:
Those classes are nothing but the byte oriented classes and character oriented classes
10.
_______________ class object is used to represent address of the resource.
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.It is used to represent address of the resource.
11.
_______________ class object is used to represent address of the destination.
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.It is used to represent address of the destination.
12.
why we can't create object of outputstream class directly by using 'new' operator?
A.
because it is an abstract class
B.
because it is a static class
C.
because it is a abstract class
D.
because it is a non static class
Answer: Option A
Explanation:
we can't create object of outputstream class directly by using 'new' operator because, it is an abstract class.
« prev
next »