文件E.java的长度是51个字节,请说出E类中标志的【代码1】和【代码2】的输出结果
import java.io.*;
public class E{
public static void main(String args[]){
File f=new File("E.java");
try{
RandomAccessFile in = new RandomAccessFile(f,"rw");
System.out.println(f.length()); // 【代码1】
FileOutputStream out = new FileOutputStream(f);
System.out.println(f.length()); // 【代码2】
}catch(IOException e){
System.out.println("File read Error"+e);
}
}
} 