Programming - Streams and Files
You Are Here :: Home > JAVA > Streams and Files - General Questions
43. |
_________________________ class helps us in transferring the objects of classes from our program to other locations.
|
A. |
ObjectOutputStream |
B.
|
ObjectInputStream |
C.
|
ObjectStream
|
D.
|
ObjectInputOutputStream
|
|
Answer: Option A
Explanation:
ObjectOutputStream class helps us in transferring the objects of classes from our program to other locations. |
|
44. |
_________________________ class helps us in transferring the objects of classes from other locations to our program.
|
A. |
ObjectOutputStream |
B.
|
ObjectInputStream |
C.
|
ObjectStream
|
D.
|
ObjectInputOutputStream
|
|
Answer: Option B
Explanation:
ObjectInputStream class helps us in transferring the objects of classes from other location to our program. |
|
45. |
All the Wrapper classes implement ___________________ interface.
|
A. |
Serializable |
B.
|
polymorphism |
C.
|
inheritence
|
D.
|
static
|
|
Answer: Option A
Explanation:
All the Wrapper classes implement Serializable interface. |
|
46. |
The ________________ class is used to know the characteristics of something present in the hard disk.
|
A. |
File Class |
B.
|
Object |
C.
|
Input
|
D.
|
Output
|
|
Answer: Option A
Explanation:
The File Class is used to know the characteristics of something present in the hard disk. |
|
47. |
______________ returns true if the file is of type read-write returns false if the file is of type read only
|
A. |
can write() |
B.
|
can read() |
C.
|
isDirectory()
|
D.
|
isFile()
|
|
Answer: Option A
Explanation:
canWrite() returns true if the file is of type read-write returns false if the file is of type read only |
|
48. |
_______________ returns true if the path specified, leads to a file, else it return false.
|
A. |
can write() |
B.
|
can read() |
C.
|
list()
|
D.
|
isFile()
|
|
Answer: Option D
Explanation:
isFile() returns true if the path specified, leads to a file, else it return false. |
|
« prev
next »