多选题Which four can be thrown using the throw statement?()AErrorBEventCObjectDThrowableEExceptionFRuntimeException

题目
多选题
Which four can be thrown using the throw statement?()
A

Error

B

Event

C

Object

D

Throwable

E

Exception

F

RuntimeException

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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.

正确答案:B

第2题:

Which four are true?()

  • A、 Has-a relationships should never be encapsulated.
  • B、 Has-a relationships should be implemented using inheritance.
  • C、 Has-a relationships can be implemented using instance variables.
  • D、 Is-a relationships can be implemented using the extends keyword.
  • E、 Is-a relationships can be implemented using the implements keyword.
  • F、 An array or a collection can be used to implement a one-to-many has-a relationship.
  • G、 The relationship between Movie and Actress is an example of an is-a relationship.

正确答案:C,D,E,F

第3题:

Click the Exhibit button. Given:Which statement is true if a TestException is thrown on line 3 of class B? ()

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.


参考答案:B

第4题:

In which four clauses can a subquery be used? ()

  • A、in the INTO clause of an INSERT statement
  • B、in the FROM clause of a SELECT statement
  • C、in the GROUP BY clause of a SELECT statement
  • D、in the WHERE clause of a SELECT statement
  • E、in the SET clause of an UPDATE statement
  • F、in the VALUES clause of an INSERT statement

正确答案:B,D,E,F

第5题:

Which four types of objects can be thrown using the throw statement?()

  • A、 Error
  • B、 Event
  • C、 Object
  • D、 Exception
  • E、 Throwable
  • F、 RuntimeException

正确答案:A,D,E,F

第6题:

Which can appropriately be thrown by a programmer using Java SE technology to create a desktop application?()

  • A、ClassCastException
  • B、NullPointerException
  • C、NoClassDefFoundError
  • D、NumberFormatException
  • E、ArrayIndexOutOfBoundsException

正确答案:D

第7题:

Which four can be thrown using the throw statement?() 

  • A、 Error
  • B、 Event
  • C、 Object
  • D、 Throwable
  • E、 Exception
  • F、 RuntimeException

正确答案:A,D,E,F

第8题:

In IPv6, the interfaces running OSPF can be configured with multiple ad dress prefixes.Which statement is true about the IPv6 addresses that can be included into the OSPF process?" ()

A. Specific addresses can be selected using a prefix list.

B. Specific addresses can be selected using a route map.

C. Specific addresses cann ot be selected for importation into the OSPF process.

D. Specific addresses can be selected using an ACL.


参考答案:C

第9题:

Which four types of object can be thrown using the throw statement?()

  • A、 Error
  • B、 Event
  • C、 Object
  • D、 Exception
  • E、 Throwable
  • F、 Runtime Exception

正确答案:A,D,E,F

第10题:

Which statement is true regarding the creation of nested plans using Resource Manager?()

  • A、 Only one nested subplan is allowed.
  • B、 The plans can be nested up to four levels.
  • C、 Resource Manager does not support nested plans.
  • D、 Nested plans control only the degree of parallelism but not the CPU.
  • E、 Each nested plan gets a proportion of the CPU resources assigned to its parent group.

正确答案:E

更多相关问题