Files and I/O
- Which of these methods can be used to writing console output?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
write(), println(), print()
- Which of these class contains the methods print() & println()?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
print() and println() are defined under the class PrintStream, System.out is the byte stream used by these methods .
- Which of these class is implemented by FilterInputStream class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
FileInputStream implements InputStream.
- Which of these class is used to read characters and strings in Java from console?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
BufferedReader
- Which of these is used to read a string from the input stream?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
read()