CMS专题

多选题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题:

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

第2题:

Which statement is true about assertion in the Java programming language?()  

  • A、 Assertion expressions should not contain side effects.
  • B、 Assertion expression values can be any primitive type.
  • C、 Assertion should be used for enforcing preconditions on public methods.
  • D、 An AssertionError thrown as a result of a failed assertion should always be handled by the enclosing method.

正确答案:A

第3题:

Why is the rubbish still here? It ought to yesterday.()

A. be thrown away

B. have thrown away

C. have been thrown away

D. throw away


参考答案:C

第4题:

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

第5题:

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

第6题:

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

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

第7题:

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

第8题:

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

第9题:

Ⅲ. There are four choices following each statement. Mark the choice that can best complete the statement: If a linguistic study describes and analyzes the language people actually use, it is said to be ()

  • A、prescriptive
  • B、analytic
  • C、descriptive
  • D、linguistic

正确答案:C

第10题:

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

更多相关问题