题目详情
单选题 假设在当前目录下无Hello.txt文件,以下程序的输出是?import java.io.*;public class Mine { public static void main(String argv[]){ Mine m = new Mine(); System.out.println(m.amethod()); } public int amethod(){ try { FileInputStream dis = new FileInputStream("Hello.txt"); } catch (FileNotFoundException fne) {System.out.println("No such file found"); return -1;} catch(IOException ioe) { } finally{System.out.println("Doing finally"); } return 0; }}
学科:[共享课]Java程序设计(华东交通大学)
时间:2023-05-08 07:13:33