• 2022-06-29
    ​要读一个较大的文件,下列创建对象的方法中哪个是最合适的?( )‍
    A: new FileInputStream(“myfile.dat”);
    B: new InputStreamReader(new FileInputStream(“myfile.dat”));
    C: new BufferedReader(new InputStreamReader(new FileInputStream(“myfile.dat”);
    D: new RandomAccessFile raf=new RandomAccessFile(new File(“myfile.dat”,”rw”));
  • 举一反三