0 votes
in JAVA by
Which class is used to write text to a file in Java?

a) File

b) FileWriter

c) FileOutputStream

d) PrintWriter

1 Answer

0 votes
by

Solution: b) FileWriter

Explanation: The FileWriter class is used to write text to a file in Java.

Related questions

0 votes
asked Apr 14, 2023 in JAVA by SakshiSharma
+2 votes
asked May 12, 2021 in JAVA by rajeshsharma
...