[单选题]阅读下列代码import java.io.*;public class Example{public static void main(String[] args) throws Exception {OutputStream out = new FileOutputStream("itcast.txt ", true); String str = "欢迎你!"; byte[] b = str.getBytes(); for (int i = 0; i < b.length; i++) { out.______(b[i]); } out.close();}}请说出下划线上,填写的方法名称( )
广开题库
|
2023-11-01 15:18:41
|
14
[单选题]阅读下列代码import java.io.*;public class Example{public static void main(String[] args) throws Exception {OutputStream out = new FileOutputStream("itcast.txt ", true); String str = "欢迎你!"; byte[] b = str.getBytes(); for (int i = 0; i < b.length; i++) { out.______(b[i]); } out.close();}}请说出下划线上,填写的方法名称( )

A.read()
B.write()
C.close()
D.available()
查看答案

广东开放大学

形成性考核

您可能感兴趣的试题
TOP