单选题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

题目
单选题
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.

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

第1题:

Evaluate the SQL statement: TRUNCATE TABLE DEPT; Which three are true about the SQL statement? ()

A. It releases the storage space used by the table.

B. It does not release the storage space used by the table.

C. You can roll back the deletion of rows after the statement executes.

D. You can NOT roll back the deletion of rows after the statement executes.

E. An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement executes will display an error.

F. You must be the owner of the table or have DELETE ANY TABLE system privileges to truncate the DEPT table


参考答案:B, D, F

第2题:

Which statement is NOT true concerning the stowage of class 1 explosives ________.

A.Class 1.1 explosives may be stowed with class 9 dangerous substances

B.Class 1.4 explosives must be“separated from”a stow of class 5.1 oxidizing materials

C.Class 1.4 explosives may not be stowed in the same hold with class 6.1 poisons

D.Class 1.4 explosives must be“separated from”a stow of class 8 corrosive materials


正确答案:C

第3题:

Given:Which statement is true?()

A. Compilation succeeds.

B. Class A does not compile.

C. The method declared on line 9 cannot be modified to throw TestException.

D. TestA compiles if line 10 is enclosed in a try/catch block that catches TestException.


参考答案:D

第4题:

Which statements concerning the switch construct are true?()  

  • A、All switch statements must have a default label.
  • B、There must be exactly one label for each code segment in a switch statement.
  • C、The keyword continue can never occur within the body of a switch statement.
  • D、No case label may follow a default label within a single switch statement.
  • E、A character literal can be used as a value for a case label.

正确答案:E

第5题:

Concerning the identification signal for a pilot vessel, in fog, which statement is TRUE?___.

A.When at anchor, the pilot vessel is only required to sound anchor signals

B.The identification signal must be sounded any time the pilot vessel is underway

C.The pilot vessel may only sound the identity signal when making way

D.All of the above


正确答案:A
雾中有关引水船的识别信号,哪句是正确的?当锚泊时,引水船仅被要求鸣放锚泊船信号.

第6题:

Given:Which statement is true about the class of an object that can reference the variable base? ()

A.It can be any class.

B.No class has access to base.

C.The class must belong to the geometry package.

D.The class must be a subclass of the class Hypotenuse.


参考答案:C

第7题:

Which statement is TRUE ________.

A.Key letters or abbreviations may not be used in GMDSS radio logbooks under any circumstance

B.Urgent communications do not need to be entered in the GMDSS radio log

C.Both of the above

D.None of the above


正确答案:D

第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题:

If a magnetic compass is not affected by any magnetic field other than the Earth’s which statement is TRUE?______.

A.Compass error and variation are equal

B.Compass north will be true north

C.Variation will equal deviation

D.There will be no compass error


正确答案:A
若磁罗经不受除了地磁意外的任何磁场的影响,哪个叙述是对的?罗经差和磁差一样的。

第10题:

Which statement about WSA access logs that are to be processed by sawmill for cisco ironport istrue?() 

  • A、 the default log format can be used
  • B、 the fields"%XC%X n" must be appended to the default access log format
  • C、 any log format can beused , but all WSAs must use the same format
  • D、 any log format can be used. And different WSAs may use different formats

正确答案:A

更多相关问题