[单选题]

( 21 )请阅读下面程序

import java.io. *;

public class ExceptionCatch{

public static void main ( String args[] ){

try {

F.ileInputStream fis=new FilelnputStream ( "text" ) ;

System.out.pfntln ( "content of text is : ” ):

} catch ( FileNotFoundException e ){

System.out.println ( e ) ;

System.out.println ( "message:"+e.getMessageQ ) ;

e.printStackTrace ( System.out ) ;

}____________;

System.out.println ( e ) ;

}

}

为保证程序正确运行,程序中下划线处的语句应是

A. ) catch ( Fiie put eam s )

B. ) e printStackTrace ()

C.) catch ( IOException e )

D.) System.out.printin ( e )

参考答案与解析: