网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
多选题
下面异常是属于RuntimeException的是()
A
ArithmeticException
B
IllegalArgumentException
C
NullPointerException
D
BufferUnderflowException
参考答案
参考解析
解析:
暂无解析
更多 “多选题下面异常是属于RuntimeException的是()AArithmeticExceptionBIllegalArgumentExceptionCNullPointerExceptionDBufferUnderflowException” 相关考题
考题
Whichfourtypesofobjectcanbethrownusingthethrowstatement?()
A.ErrorB.EventC.ObjectD.ExceptionE.ThrowableF.RuntimeException
考题
publicclassThreads2implementsRunnable{publicvoidnun(){System.out.println(”run.”);thrownewRuntimeException(”Problem”);}publicstaticvoidmain(String[]args){Threadt=newThread(newThreads2());t.start();System.out.println(”Endofmethod.”);}}Whichtwocanberesults?()A.java.lang.RuntimeException:ProblemB.run. java.lang.RuntimeException:ProblemC.Endofmethod. java.lang.RuntimeException:ProblemD.Endofmethod. run.java.lang.RuntimeException:ProblemE.run. java.lang.RuntimeException:ProblemEndofmethod.
考题
Given:Which two can be results?()
A. java.lang.RuntimeException: ProblemB. run.java.lang.RuntimeException: ProblemC. End of method.java.lang.RuntimeException: ProblemD. End of method.run.java.lang.RuntimeException: ProblemE. run.java.lang.RuntimeException: Problem End of method.
考题
分析下面的用Java语言编写的trythis()方法:当该方法被调用时,如果其中的problem()方法引发一个RuntimeException类的异常,那么输出结果将是()。A.abcdeB.abdC.abdeD.abe
考题
执行下列程序段,请选出正确的答案()A.能通过编译B.输出“开始了”→RuntimeException异常发生→输出“出错了”→输出“结束了”C.输出“开始了’→RuntimeException异常发生→输出”结束了”D.输出“开始了→输出”结束了”→RuntimeException异常发生
考题
关于checked/uncheckedexception,下列哪些说法是正确的:
A.继承java.lang.Error的类属于checkedexceptionB.checked异常继承java.lang.Exception类C.unchecked异常继承java.lang.RuntimeException类D.NullPointerException,IllegalArgumentException属于uncheckedexception
考题
static void test() throws RuntimeException { try { System.out.print(”test “); throw new RuntimeException(); } catch (Exception ex) { System.out.print(”exception “); } } public static void main(String[] args) { try { test(); } catch (RuntimeException ex) { System.out.print(”runtime “); } System.out.print(”end “); } What is the result?() A、 test endB、 Compilation fails.C、 test runtime endD、 test exception endE、 A Throwable is thrown by main at runtime.
考题
下面异常是属于RuntimeException的是()A、ArithmeticExceptionB、IllegalArgumentExceptionC、NullPointerExceptionD、BufferUnderflowException
考题
下面有关JAVA异常类的描述,说法错误的是()。A、异常的继承结构:基类为Throwable,Error和Exception继承Throwable,RuntimeException和IOException等继承ExceptionB、非RuntimeException一般是外部错误,其必须被 try{}catch语句块所捕获C、Error类体系描述了Java运行系统中的内部错误以及资源耗尽的情形,Error不需要捕捉D、RuntimeException体系包括错误的类型转换、数组越界访问和试图访问空指针等等,必须被 try{}catch语句块所捕获
考题
Which four can be thrown using the throw statement?() A、 ErrorB、 EventC、 ObjectD、 ThrowableE、 ExceptionF、 RuntimeException
考题
不必被捕获或声明抛出的异常是()A、NullPointerExcepitonB、ArithmeticExceptionC、FileNotFoundExceptionD、RuntimeException
考题
Which four types of objects can be thrown using the throw statement?()A、 ErrorB、 EventC、 ObjectD、 ExceptionE、 ThrowableF、 RuntimeException
考题
单选题static void test() throws RuntimeException { try { System.out.print(”test “); throw new RuntimeException(); } catch (Exception ex) { System.out.print(”exception “); } } public static void main(String[] args) { try { test(); } catch (RuntimeException ex) { System.out.print(”runtime “); } System.out.print(”end “); } What is the result?()A
test endB
Compilation fails.C
test runtime endD
test exception endE
A Throwable is thrown by main at runtime.
考题
多选题public class Threads2 implements Runnable { public void nun() { System.out.println(”run.”); throw new RuntimeException(”Problem”); } public static void main(String[] args) { Thread t = new Thread(new Threads2()); t.start(); System.out.println(”End of method.”); } } Which two can be results?()Ajava.lang.RuntimeException: ProblemBrun. java.lang.RuntimeException: ProblemCEnd of method. java.lang.RuntimeException: ProblemDEnd of method. run.java.lang.RuntimeException: ProblemErun. java.lang.RuntimeException: Problem End of method.
考题
单选题下面有关JAVA异常类的描述,说法错误的是()。A
异常的继承结构:基类为Throwable,Error和Exception继承Throwable,RuntimeException和IOException等继承ExceptionB
非RuntimeException一般是外部错误,其必须被 try{}catch语句块所捕获C
Error类体系描述了Java运行系统中的内部错误以及资源耗尽的情形,Error不需要捕捉D
RuntimeException体系包括错误的类型转换、数组越界访问和试图访问空指针等等,必须被 try{}catch语句块所捕获
考题
单选题以下异常中,不属于Runtimeexception的是()A
NullPointerExeption,使用未初始化的引用变量B
IndexOutofBondsException,数组下标越界异常C
IllegalAccessException,没有足够的权限访问其他类的成员D
ArithmeticException,算术异常
热门标签
最新试卷