Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Which class is used to write text to a file in Java?
Home
JAVA
Which class is used to write text to a file in Java?
0
votes
asked
May 7
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
by
SakshiSharma
Solution: b) FileWriter
Explanation: The FileWriter class is used to write text to a file in Java.
Related questions
0
votes
Q: Which class is used to read text from a file in Java?
asked
May 7
in
JAVA
by
SakshiSharma
read
text
file
java
0
votes
Q: Which class is used to write data to a file in Java?
asked
May 7
in
JAVA
by
SakshiSharma
write
data
file
java
0
votes
Q: What is the correct syntax to write an expression?
asked
Feb 5, 2021
in
Angular
by
SakshiSharma
syntax
to
write
an
expression
0
votes
Q: Which action variable helps in including a file in the JSP?
asked
Aug 21, 2022
in
JAVA
by
sharadyadav1986
jsp
file
java
0
votes
Q: What is Hibernate Configuration File?
asked
Apr 14, 2023
in
JAVA
by
SakshiSharma
java
hibernate
configuration
file
0
votes
Q: Which of the following is an example of a text classification task?
asked
Apr 4
in
NLP using Python
by
john ganales
text
classification
task
0
votes
Q: Define the term Text Input Format in MapReduce?
asked
Feb 17, 2023
in
Hadoop
by
sharadyadav1986
text
format
0
votes
Q: Which class is used to read data from a file in Java?
asked
May 7
in
JAVA
by
SakshiSharma
read
data
fromfile
java
0
votes
Q: Which class is used to perform file input and output operations in Java?
asked
May 7
in
JAVA
by
SakshiSharma
operations
java
+2
votes
Q: Can you write a Java class that could be used both as an applet as well as an application?
asked
May 12, 2021
in
JAVA
by
rajeshsharma
java-class
java-application
java
Java-questions-answers
...