Which four types of object can be thrown using the throw statement?()
第1题:
A.Compilation fails.
B.exception is thrown at runtime.
C.The attribute id in the ItemTest object remains unchanged.
D.The attribute id in the ItemTest object is modified to the new value.
E.A new ItemTest object is created with the preferred value in the id attribute.
第2题:
A. Schedule object
B. Program object
C. Job object
D. Resource plan
E. Resource consumer group
第3题:
A.Error
B.Event
C.Object
D.Exception
E.Throwable
F.RuntimeException
第4题:
Which the statement is true?()
第5题:
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?()
第6题:
A.Line 33 must be called within a try block.
B.The exception thrown by method1 in class A is not required to be caught.
C.The method declared on line 31 must be declared to throw a RuntimeException.
D.On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch block.
第7题:
Java程序中读入用户输入的一个值,要求创建一个自定义的异常,如果输入值大于10,使用throw语句显式地引发异常,异常输出信息为“something’swrong!”,语句为()。
A.if(I>10)throw Exception(“something’swrong!”);
B.if(I>10)throw Exceptione(“something’swrong!”);
C.if(I>10)thrownew Exception(“something’swrong!”);
D.if(I>10)thrownew Exceptione(“something’swrong!”);
第8题:
A.Error
B.Event
C.Object
D.Throwable
E.Exception
F.RuntimeException
第9题:
Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()
第10题:
可以使用throw语句抛出的对象包括()。