Error与Exception下列说法正确的是()
下列关于异常类型的说明中错误的是( )。A.Throwable类定义了Java语言中所有的异常情况B.Exception是用户程序不能够捕获到,只能由系统捕获到的异常情况C.Error定义了通常无法捕获到的情况D.RuntimeException是程序运行时产生的,由JVM进行处理
点击查看答案
自定义的异常类可从下列( )类继承。A.error类B.awtercorC.virtualmachineerrorD.exception及其子集
自定义的异常类可从下列哪个类继承?( )。A.Error类B.AWTErrorC.VirtualMachineErrorD.Exception及其子集
下列关于自定义异常的说法中错误的是()A、自定义异常要继承Exception类B、自定义异常继承Exception类后具有可抛性C、自定义异常可以在构造方法中用super关键字传递异常信息给父类D、自定义异常必须继承Error类
关于checked/uncheckedexception,下列哪些说法是正确的:A.继承java.lang.Error的类属于checkedexceptionB.checked异常继承java.lang.Exception类C.unchecked异常继承java.lang.RuntimeException类D.NullPointerException,IllegalArgumentException属于uncheckedexception
Error和Exception下列说法正确的是()。 A、Error表示系统级的错误。B、Error表示程序不必处理的异常。C、Exception表示需要捕捉的异常。D、Exception表示需要程序进行处理的异常。
Which the statement is true?()A、 The Error class is a Runtime Exception.B、 No exceptions are subclasses of Error.C、 Any statement that may throw an Error must be enclosed in a try block.D、 any statement that may throw an Exception must be enclosed in a try block.E、 Any statement that may throw an Runtime Exception must be enclosed in a try block.