Suppose you run the following program on Windows using the d…

Suppose you run the following program on Windows using the default ASCII encoding after the program is finished, how many bytes are there in the file t.txt? Show the contents of each byte.public class Test { public static void main(String[] args) throws java.io.IOException {   try (java.io.PrintWriter output =                                newjava.io.PrintWriter(“t.txt”); ) {       output.printf(“%s”, “1234”);       output.printf(“%s”, “5678”);       output.close();   } }}

What happen if the file “output.dat” does not exist when you…

What happen if the file “output.dat” does not exist when you attempt to compile and run the code below?import java.io.*; public class Test { public static void main(String[] args) { try ( RandomAccessFile raf = new RandomAccessFile (“output.dat”, “r”); ) { int i = raf.readInt(); } catch (IOException ex) { System.out.println (“IOexception”); } }}