IOException
RuntimeException
If there is no file on the disk called myfile, what is the effect of attempting to compile and run the Java program that consists only of the following:
myfile
import java.io.*; public class Test { public static void main(String[] args) { try { method(); } catch (IOException ioe) { System.out.println("B"); } finally { System.out.println("C"); } System.out.println("D"); } private static void method() { DataInputStream dis = new DataInputStream( new BufferedInputStream(new FileInputStream("myfile"))); System.out.println("A"); } }
Select the most appropriate answer.