<br class="markdown_return">阅读下段代码 <br class="markdown_return">I

分类: 高级Java开发工程师 发布时间: 2023-11-03 11:08 浏览量: 0


阅读下段代码
Import java.io.*;
Public class Example{
public static void main(String[] args) throws Exception {
FileInputStream fis = new FileInputStream("file.txt");
FileOutputStream fos = new FileOutputStream("copy_file.txt");
int ch = 0;
while((ch =fis.read())!=-1){
fos.write(ch);
}
fos._______;
fis.close();
}
}
请说出下划线上,填写的方法名称( )
1分

A.read()

B.available()

C.close()

D.write()

正确答案是C