首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下面程序 import java.io.*; public class ExceptionCatch { public static void main(String args[]) { try { FileI
阅读下面程序 import java.io.*; public class ExceptionCatch { public static void main(String args[]) { try { FileI
admin
2013-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
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
下列叙述中正确的是()。
random库采用更多的伪随机数序列生成算法是()。
定义部门的关系模式如下: 部门(部门号,部门名,部门成员,部门总经理) 使它不满足第一范式的属性是()。
设栈的顺序存储空间为s(1:m),初始状态为top=m+1,则栈中的元素个数为()。
以下关于文件读写的描述中,错误的是()。
下列Applet用于显示提供它的主机的IP地址。请选择正确的语句填入横线处。importjava.awt.*;importjava.awt.event.*;importjava.applet.Applet;impo
下列方法中可以用来创建一个新线程的是______。
下列程序使用系统标准输入System.in从键盘获得输入字符串,请选择正确的一项填入下列程序的横线处。importjava.io.*;publicclassex26
现有一个双精度浮点变量声明为doubledValue,下列赋值语句中不正确的一个是______。
下列各项中代表八进制整数的是()。
随机试题
灰铸铁焊补时,由于()不足等原因,焊缝和半熔化区容易产生白口铸铁组织。
在进行变送器测量范围设置时,下列选项不正确的是()。
下列哪种牙髓病变可能会引起牙周病
气调养护中自然降氧的标准是
资产评估目的在资产评估中的作用表现在()。
甲企业于2019年初对某生产企业投资2000万元,取得其30%的股权。后因资金需要,甲企业2019年末将对生产企业的投资全部撤回,共取得资产3000万元。投资撤回时工业企业累计未分配利润为1500万元,累计盈余公积200万元。甲企业撤资业务应缴纳的企业
下列评价指标中,可用来分析项目盈利性的有()。
张明去玩具商店给儿子买玩具,他准备挑选四个玩具枪中的一个,三种球类中的一类,五种积铁中的两种,若不考虑挑选次序,问可以有几种选择方法?
下列有关类的表述中,正确的是
Whenaconsumerfindsthatanitemsheorheboughtisfaultyordoesnotliveuptothemanufacturer’s【B1】_____forit,thefir
最新回复
(
0
)