首页 > 题库 > 学历提升 > 自学考试 > 自考本科 > 案例题

阅读程序,描述该程序的功能。
import java.io.*;
public class Test30 {
public static void main(String args[]) {
try {
FileInputStream in = new FileInputStream("fortest30.txt");
while(in.available()> 0)
System.out.print(in.read( + " "); .
in.close();
} catch (FileNotFoundExceptione) {
Sytemutpritin("rror: Cannot open file for reading";
} catch (EOFExceptione) {
Systemur.trnt"'rror: EOF encountered, file may be corrupted.");
} catch (lOExceptione) {
Sytemo.utprintnt"rror: Cannot read from fle.");
}
}
}


参考答案: 查看答案 查看解析 下载APP畅快刷题

相关知识点试题

相关试卷