Error and Exception
来源:互联网 发布:网络小胖卡通头像 编辑:程序博客网 时间:2024/06/04 19:46
Which statement is true?
A. catch(X x) can catch subclasses of X.
B. The Error class is a RuntimeException.
C. Any statement that can throw an Error must be enclosed in a try block.
D. Any statement that can throw an Exception must be enclosed in a try block.
E. Any statement that can throw a RuntimeException must be enclosed in a try
block.
Answer: A
Error and Exception are subclasses of Throwable.
RuntimeException is a subclass of Exception.
statements that throw Error do not need to be in a try block.
statemens that throw RuntimeException do not need to be in a try block (but other Exceptions have to be).
- Compilation error and exception
- Exception and Error
- Error and Exception
- error and Exception
- Error and Exception
- Error 、 Exception And RuntimeException
- 【Java】【Exception】Java Error And Exception
- checked exception和runtime exception and error
- Perl Error and Exception Collections
- 异常与错误区别 Error and Exception
- java.lang.Throwable and its descendant: Error and Exception
- Java基教--异常与错误区别 Error and Exception
- 使用异常和返回值,Exception and Error dispose
- Java--异常与错误区别 Error and Exception
- 浅谈Java中的错误和异常(Error and Exception)
- Python 3.3 Tutorial Notes - 6:Error and Exception
- Error & Exception
- error exception
- Qt 状态机框架学习
- UIViewController
- ubuntu10.10下给firefox4.0安装flash
- 写在最开始的话
- vbs中class的使用示例
- Error and Exception
- Python操作Excel的示例
- 软件性能测试
- eclipse的svn客户端(subclipse)的安装和简单使用
- Groovy和Grails安装配置
- Android Animations 用法之3
- 学习Axis和web service之一
- RTEMS 网络资料的部分翻译
- cd 增强版