Which statement is used to create a file object that will append data to an existing file? BufferedWriter salesdata =

new BufferedWriter(new FileWriter("out.dat", false);.
new BufferedWriter(new FileWriter("out.dat", true);.
new BufferedWriter(new FileWriter("out.dat");.
new BufferedWriter(new FileWriter("out.dat", append);.

Respuesta :

Answer:

new BufferedWriter(new FileWriter("out.dat", true));

Explanation:

We can use the BufferedWriter and FileWriter classes to create a File object which will append data to an existing file. For this purpose we can use the following statement:

BufferedWriter salesdata = new BufferedWriter(new FileWriter("out.dat", true));

This opens the file "out.dat" for writing in append mode and uses this FileWriter to create an instance of BufferedObject instance.

Answer:sorry that I can’t help on this try calling 2759999

Explanation: