Test time left: 30:18Select the correct answerWhich of these class is not related to input and output stream in terms of functioning?OptionsFileInputStreamWriterReader
Question
Test time left: 30:18Select the correct answerWhich of these class is not related to input and output stream in terms of functioning?OptionsFileInputStreamWriterReader
Solution
The correct answer is "Writer".
Here's why:
-
FileInputStream: This is related to input and output stream as it is used for reading data from a file.
-
Writer: This is a class used for writing streams of characters. It is not directly related to input and output stream in terms of functioning as it doesn't deal with bytes but with characters.
-
Reader: This is related to input and output stream as it is used for reading streams of characters from a source.
So, the class that is not related to input and output stream in terms of functioning is "Writer".
Similar Questions
Select the correct answerWhich of these class is not related to input and output stream in terms of functioning?OptionsInputStreamWriterFileReader
Which of these class is not related to input and output stream in terms of functioning?OptionsWriterFileInputStreamReader
Test time left: 34:20Select the correct answerWhich of these packages contain classes and interfaces used for input & output operations of a program?Optionsjava.utiljava.iojava.langall of the mentioned
Test time left: 20:37Select the correct answerWhat is the output of the following program?public class Score{ public static void main(String[] args) { int value = 121; String var = (String)value; //line 1 String temp = "122"; int data = (int)temp; //line 2 System.out.println(data + var); }}OptionsCompilation error due to line 1243Compilation error due to line 2Compilation error due to line 1 and line 2
Test time left: 33:38Select the correct answerWhat is the range of short data type in Java?Options-32768 to 32767-128 to 127-2147483648 to 2147483647None of the mentioned
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.