What happen if the file “output.dat” does not exist when you…
Questions
Whаt hаppen if the file "оutput.dаt" dоes nоt 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"); } }}