Login
Remember
Register
Ask a Question
Which class is used to write text to a file in Java?
0
votes
asked
May 7, 2024
in
JAVA
by
SakshiSharma
Which class is used to write text to a file in Java?
a) File
b) FileWriter
c) FileOutputStream
d) PrintWriter
write
text
to
a
file
java
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 7, 2024
by
SakshiSharma
Solution: b) FileWriter
Explanation: The FileWriter class is used to write text to a file in Java.
...