Vidyalelo
Java Programming · Q10

Input Output

Programming · Java Programming · question 10

Q10

What is the purpose of the `PrintWriter` class in Java?

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

Answer: Option B

Solution

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