下列代码将对象写入的设备是( )。 ByteArrayOutputStream bout=new ByteArrayOut- putStream; ObjectOutputStream ut=new ObjectOutputStream (bout); out.writeObject(this); out.close;
A.内存
B.硬盘
C.屏幕
D.网络
第1题:
第2题:
(字节数组字节流)下列代码将对象写入的设备是________。ByteArrayOutputStream bout=new ByteArrayOutputStream(); ObjectOutputStream out=new ObjectOutputStream(bout); out.writeObject(this); out.close();
A.内存
B.硬盘
C.屏幕
D.网络
第3题:
下面代码用于把数据以追加的方式写入到指定的文件中,请完成程序的填空。 string filename = TextBox1.Text.ToString(); string filecontent = TextBox2.Text.ToString(); StreamWriter swr = new ; swr.WriteLine(filecontent); Response.Write(""); swr.Close();
下面代码用于把数据以追加的方式写入到指定的文件中,请完成程序的填空。 string filename = TextBox1.Text.ToString(); string filecontent = TextBox2.Text.ToString(); StreamWriter swr = new ; swr.WriteLine(filecontent); Response.Write(""); swr.Close();第4题:
A.ByteArrayOutputStream流中缓冲区的大小不能被定义
B.ByteArrayOutputStream流关闭后仍可被调用,并且不会产生任何IOException
C.ByteArrayOutputStream流关闭后不能被使用,否则抛出IOException
D.ByteArrayOutputStream流必须与ByteArrayInputStream流配对使用
第5题:
(字节输出流)将一个字节数组作为输出流写入内存的类是_________。
A.PipedInputStream
B.StringBufferInputStream
C.ObjectOutputStream
D.ByteArrayOutputStream