Input Output - Study Mode
[#41] In Java, what is the purpose of the `File.separator` constant?
Correct Answer
(C) It represents the platform-specific file separator (e.g., `/` or ``)
[#42] What is the difference between character streams and byte streams in Java?
Correct Answer
(D) Character streams are used for reading and writing text data, while byte streams are used for reading and writing binary data
[#43] In Java, what is the purpose of the `BufferedWriter` class?
Correct Answer
(A) It is used to write character data to a file efficiently
[#44] Which class is used for reading character streams in a platform-independent way in Java?
Correct Answer
(D) `InputStreamReader`
[#45] In Java, what is the primary purpose of the `PrintStream` class?
Correct Answer
(C) It is used to write formatted text to an output stream