运行下列程序时,若没有test.dat文件,则( )。
运行下列程序时,若没有test.dat文件,则( )。
java
import java.io.*;
public class Test{
public static void main (String[] args) {
try{
RandomAccessFile raf=new RandomAccessFile
("test.dat", "r") ;
System.out.println ("test.dat") ;
}
catch (IOException ex) {
System.out.println ("exception") ;
}
}
}答案
A