Question 10
Consider the code given below.
Assume that, before execution of the given code, the files "f1.txt" and "f2.txt" have the following text in them.
JavaScript is a scripting language
import java.io.*;public class TestFile { public static void main(String[] args) { try { var out = new FileOutputStream("f1.txt", true); var dout = new DataOutputStream(out); dout.writeBytes(", enables you to create dynamically updating content"); dout.close();
var out2 = new FileOutputStream("f2.txt", false); var dout2 = new DataOutputStream(out2); dout2.writeBytes(", enables you to create dynamically updating content")
dout2.close(); } catch(IOException e) { System.out.println(e); } }}Choose the correct option regarding the contents of f1.txt and f2.txt after the program finishes execution.