Programming - Streams and Files
You Are Here :: Home > JAVA > Streams and Files - General Questions
31. |
Java input console is accomplished by reading from _____________________
|
A. |
System.out |
B.
|
System.in |
C.
|
Println
|
D.
|
Printf
|
|
Answer: Option B
Explanation:
Java input console is accomplished by reading from System.in |
|
32. |
A _________________ can be defined as a sequence of data.
|
A. |
Stream |
B.
|
Object |
C.
|
Class
|
D.
|
variable
|
|
Answer: Option A
Explanation:
A Stream can be defined as a sequence of data. |
|
33. |
How many File utility methods which can be used to create directories?
|
|
Answer: Option B
Explanation:
There are two useful File utility methods which can be used to create directories.mkdir( ) and mkdirs(). |
|
34. |
The __________________________ method creates a directory, returning true on success and false on failure.
|
A. |
mkdir( ) |
B.
|
mkdirs() |
C.
|
both A and B
|
D.
|
none
|
|
Answer: Option A
Explanation:
The mkdir( ) method creates a directory, returning true on success and false on failure. |
|
35. |
The _________________ method creates both a directory and all the parents of the directory.
|
A. |
mkdir( ) |
B.
|
mkdirs() |
C.
|
both A and B
|
D.
|
none
|
|
Answer: Option B
Explanation:
The mkdirs() method creates both a directory and all the parents of the directory. |
|
36. |
The ___________________________ class contains utility methods for working with File objects.
|
A. |
FileUtils |
B.
|
FileIO |
C.
|
FileSql
|
D.
|
FileExe
|
|
Answer: Option A
Explanation:
The FileUtils class contains utility methods for working with File objects. |
|
« prev
next »