中国大学MOOC: (字节数组字节流)下列代码将对象写入的设备是________。ByteArrayOutputStream bout=new ByteArrayOutputStream();ObjectOutputStream out=new ObjectOutputStream(bout);out.writeObject(this);out.close();
内存
举一反三
- 写入一个实体对象到文件该如何实现? A: 用ObjectOutputStream的write()方法 B: 用DataStream的writeObject()方法 C: 用ObjectOutputStream的writeObject()方法 D: 用FileOutputStream的writeObject()方法
- 中国大学MOOC: (字节输出流)Java中类ObjectOutputStream支持对象的写操作,这是一种字节流,它的直接父类是_______。
- 字节数组输入流是_____ A: CharArrayReade B: CharArrayWrite C: ByteArrayOutputStream D: ByteArrayInputStream
- 字节数组输入流是()。 A: CharArrayReader B: CharArrayWriter C: ByteArrayOutputStream D: ByteArrayInputStream
- With the sound of ancient bells _____ at midnight on Chinese New Year’s Eve in China, people celebrate the New Year. A: ring out B: rings out C: ringing out D: rung out
内容
- 0
“The New Deal” was carried out by ______.
- 1
My trousers are_____ .I need a new pair . A: wore out B: worn out C: wearing out D: sold out
- 2
Before developing new products, we often _____ market research. A: make out B: get out C: carry out D: take out
- 3
面那些选项能够创建一个OutputStream流,并且可以将内容附加到“file.txt”文件中 A: OutputStream out=new FileOutputStream(“file.txt“); B: OutputStream out=new FileOutputStream(“file.txt“,”append”); C: OutputStream out=new FileOutputStream(“file.txt“,true); D: OutputStream out=new FileOutputStream(“file.txt“);
- 4
The new trend here is _______ in the cold! A: work out B: working out C: working