Vidyalelo
Java Programming · Q27

Input Output

Programming · Java Programming · question 27

Q27

In Java, what is the primary purpose of the `PrintStream` class?

A.
It is used to read binary data from a file
B.
It is used to write binary data to a file
C.
It is used to write formatted text to an output stream
Answer
D.
It is used to read text data from the keyboard

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board