• 2022-06-07
    下面创建的输入或输出流对象哪个能读或写Java语言中的double类型的数据
    A: FileOutputStream fos=new FileOutputStream("1.dat");
    B: DataOutputStream out=new DataOutputStream(new FileOutputStream(“2.dat”));
    C: RandomAccessFile raf = new RandomAccessFile("3.java" , "rw" );
    D: DataInputStream in=new DataInputStream(new FileInputStream(“4.dat”));
  • 举一反三