-->
当前位置:首页 > 题库

单选题:Suppose there is no file Hello.txt in the current directory. Run

Luz5年前 (2021-05-10)题库1486
Suppose there is no file Hello.txt in the current directory. Run the program: @[C](2)
```
import java.io.*;
public class ABC {
public static void main(String argv[]) throws Exception {
ABC m=new ABC();
System.out.println(m.ff());
}

public int ff() {
try {
FileInputStream dis=new FileInputStream("Hello.txt");
} catch (FileNotFoundException fne) {
System.out.print("No such file found, ");
throw fne;
} finally {
System.out.print("Doing finally, ");
}
return 0;
}
}
```

A. No such file found,
B. No such file found ,0
C. No such file found, Doing finally,
D. No such file found, Doing finally, 0





A.No such file found,
B.No such file found ,0
C.No such file found, Doing finally,
D.No such file found, Doing finally, 0


答案:C