MCQs
Total Questions : 17
| Page 1 of 2 pages
Answer: Option C. -> FileInputStream
FileInputStream implements InputStream.
Answer: Option D. -> PrintStream
print() and println() are defined under the class PrintStream, System.out is the byte stream used by these methods .
Answer: Option A. -> reverse()
reverse() method reverses all characters. It returns the reversed object on which it was called.
Answer: Option B. -> StringBuffer()
StringBuffer represents growable and writeable character sequence.
Answer: Option D. -> All of the mentioned
All of the mentioned
Answer: Option C. -> Abstract Window Toolkit
AWT stands for Abstract Window Toolkit, it is used by applets to interact with the user.
Answer: Option A. -> streams
Like in any other language, streams are used for input and output operations.
Answer: Option B. -> Writer
Character streams uses Writer and Reader classes for input & output operations.
Answer: Option A. -> InputStream
Byte stream uses InputStream and OutputStream classes for input and output operation.
Answer: Option C. -> Byte stream
Java defines only two types of streams “ Byte stream and character stream.