Multiple Choice
Which of the following statements opens a file named MyFile.txt and allows you to append data to its existing contents?
A) FileWriter fwriter = new FileWriter("MyFile.txt") ;
PrintWriter outFile = new PrintWriter(fwriter) ;
B) FileWriter fwriter = new FileWriter("MyFile.txt", true) ;
PrintWriter outFile = new PrintWriter(fwriter) ;
C) PrintWriter outfile = new PrintWriter("MyFile.txt", true) ;
D) PrintWriter outfile = new PrintWriter(true, "MyFile.txt") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q36: Java provides a set of simple unary
Q37: How many times will the following for
Q38: What will be the value of x
Q39: What will be the values of x
Q40: A(n) _ is a special value that
Q42: A file must always be opened before
Q43: What will be the value of x
Q44: What will be the value of x
Q45: When you pass the name of a
Q46: Which is a control structure that causes