- 讲师:刘萍萍 / 谢楠
- 课时:160h
- 价格 4580 元
特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关
配套通关班送国网在线题库一套
百度广告
{
int i;
try
{
i=System.in.read ();
System.out.println(Location 1);
} catch (IOException e) {
System.out.println(Location 2);
} finally {
System.out.println(Location 3);
}
System.out.println(Location 4);
}
If an IOException occurs, what will be printed?
B. Location 2
C. Location 3
D. Location 4
Explanation:
Correct Answer: B,C,D 41 of 60
If the method func() is allowed to throw out the IOException, which declaration of this method can used?
B. public int func(int i) throw IOException
C. public int func(int i) throw Exception
D. public int func(int i) throws IOException
E. public int func(int i) throws Exception
Explanation:
Correct Answer: D,E 42 of 60
|||
Given the following expression:
String f = null;
Which of the following expressions will throw an exception?
10
B. f != null | f.length()>10
C. f == null || f.length()>10
D. f != null || f.length()>10
Explanation:
Correct Answer: A,B,D 43 of 60
责编:罗莉
上一篇:Java认证模考试题(七)
下一篇:Java认证模考试题(十)
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
点击加载更多评论>>