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 Aug 21, 2022 in JAVA by sharadyadav1986
0 votes
asked May 7 in JAVA by SakshiSharma
...