可以定义,我验证了一下。
public class RandomAccess {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
RandomAccessFile raf=new RandomAccessFile("","");
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
|