阅读下面程序 import java.io.*; public class ExceptionCatch {  public static void main(String args[]) {   try {    FileI

admin2013-03-01  24

问题 阅读下面程序    import java.io.*;    public class ExceptionCatch {     public static void main(String args[]) {      try {       FileInputStream fis=new FilelnputStream("text");       System.out.println("content of text is:");      } catch(FileNotFoundException e) {       System.out.println(e);       System.out.println("message:"+e.getMessage());       e.printStackTrace(System.out);      } ______ {       System.out.println(e);      }     }    }    为保证程序正确运行,程序中下画线处的语句应是

选项 A、catch(FileInputStream fis)
B、e printStackTrace()  
C、catch(IOException e)
D、System.out.println(e)

答案C

解析
转载请注明原文地址:https://jikaoti.com/ti/aW80FFFM
0

最新回复(0)