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

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


参考解析

解析: 暂无解析

相关考题:

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.

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.

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

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.

Which statement is NOT true concerning the stowage of class 1 explosives ________.A.Class 1.1 explosives may be stowed with class 9 dangerous substancesB.Class 1.4 explosives must be“separated from”a stow of class 5.1 oxidizing materialsC.Class 1.4 explosives may not be stowed in the same hold with class 6.1 poisonsD.Class 1.4 explosives must be“separated from”a stow of class 8 corrosive materials

Which statement is TRUE ________.A.Key letters or abbreviations may not be used in GMDSS radio logbooks under any circumstanceB.Urgent communications do not need to be entered in the GMDSS radio logC.Both of the aboveD.None of the above

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 signalsB.The identification signal must be sounded any time the pilot vessel is underwayC.The pilot vessel may only sound the identity signal when making wayD.All of the above

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 equalB.Compass north will be true northC.Variation will equal deviationD.There will be no compass error

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.

Which statement about WSA access logs that are to be processed by sawmill for cisco ironport istrue?() A、 the default log format can be usedB、 the fields"%XC%X n" must be appended to the default access log formatC、 any log format can beused , but all WSAs must use the same formatD、 any log format can be used. And different WSAs may use different formats

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.

Which statement is true about IBGP routers? ()A、They must be fully meshedB、They can be in a different ASC、They must be directly connected

Which statement is true?()A、 An anonymous inner class may be declared as final.B、 An anonymous inner class can be declared as private.C、 An anonymous inner class can implement multiple interfaces.D、 An anonymous inner class can access final variables in any enclosing scope.E、 Construction of an instance of a static inner class requires an instance of the enclosing outer class.

Which four types of object can be thrown using the throw statement?()A、 ErrorB、 EventC、 ObjectD、 ExceptionE、 ThrowableF、 Runtime Exception

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

单选题Which statement is true?()A An anonymous inner class may be declared as final.B An anonymous inner class can be declared as private.C An anonymous inner class can implement multiple interfaces.D An anonymous inner class can access final variables in any enclosing scope.E Construction of an instance of a static inner class requires an instance of the enclosing outer class.

单选题Which statement is TRUE concerning the danger signal?().AWhen any vessel fails to understand the intentions of an approaching vessel she must sound the danger signalBOnly the stand-on vessel can sound the danger signalCDistress signals may be used in place of the danger signalDThe danger signal consists of 4 or more short blasts of the whistle

单选题Which statement about WSA access logs that are to be processed by sawmill for cisco ironport istrue?()A the default log format can be usedB the fields%XC%X n must be appended to the default access log formatC any log format can beused , but all WSAs must use the same formatD any log format can be used. And different WSAs may use different formats

单选题Which statement is TRUE concerning lifeboat gripes?()AThey must be released by freeing a safety shackleBThey should not be released until the boat is in lowering positionCThey may be adjusted by a turnbuckleDThey are normally used only with radial davits

单选题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 method 1 in class A is not required to be caught.C The method declared on line 31 must be declared to throw a runtime exception.D On line 5 of class A,the call to method 2 of class B does not need to be placed in a try catch block.

单选题Concerning the identification signal for a pilot vessel,in fog,which statement is TRUE?()AWhen at anchor,the pilot vessel is only required to sound anchor signalsBThe identification signal must be sounded any time the pilot vessel is underwayCThe pilot vessel may only sound the identity signal when making wayDAll of the above

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

单选题If a magnetic compass is not affected by any magnetic field other than the Earth’s,which statement is TRUE? ()ACompass error and variation are equalBCompass north will be true northCVariation will equal deviationDThere will be no compass error

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

单选题Evaluate the following statement:   Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?()A  They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any other WHEN clause.B  They are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated by the subsequent WHEN clauses.C  They are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated by the subsequent WHEN clauses.D  The INSERT statement would give an error because the ELSE clause is not present for support in case none of the WHEN clauses are true.

多选题Which four types of object can be thrown using the throw statement?()AErrorBEventCObjectDExceptionEThrowableFRuntime Exception

单选题Which statements concerning the switch construct are true?()AAll switch statements must have a default label.BThere must be exactly one label for each code segment in a switch statement.CThe keyword continue can never occur within the body of a switch statement.DNo case label may follow a default label within a single switch statement.EA character literal can be used as a value for a case label.

单选题Which statement is TRUE().AKey letters or abbreviations may not be used in GMDSS radio logbooks under any circumstanceBUrgent communications do not need to be entered in the GMDSS radio logCBoth of the aboveDNone of the above