[单选题]

阅读下面程序 import java.io.*; public class ByteStreamTest { public static void main(String[] A) { int [] myArray = {10,20,30,40 }; try{ DataOutputStream dos = new DataOutputStream ( new______ ("ints.dat")); for (int i=0; i<myArray, length; i++) dos.writelnt( myArray[i] ); dos.close(); System.out.println("Have written binary file ints.dat"); } catch (IOException ioe){ Sy stem.out.println("IO Exception"); } } } 为保证程序正确运行,在程序中下划线处应填入的代码是

A.FileOutputStream

B.ByteArrayOutputStream

C.BufferedOutputStream

D.FileWriter

参考答案与解析:

相关试题

阅读下面程序 import java.io.*;public class Byt