Question 11
Consider the code given below.
Assume that, before execution of the given code, the files "file1.txt" and "file2.txt" have the following text in them.
Java is a programming language
import java.io.*;public class FileTest { public static void main(String[] args) { try { var out = new FileOutputStream("file1.txt", false); var dout = new DataOutputStream(out); dout.writeBytes(", released by Sun Microsystems in 1995"); dout.close();
var out2 = new FileOutputStream("file2.txt", true); var dout2 = new DataOutputStream(out2); dout2.writeBytes(", released by Sun Microsystems in 1995"); dout2.close(); } catch(IOException e) { System.out.println(e); } }}Choose the correct option regarding the contents of file1.txt and file2.txt after the program finishes execution.