Question: Java6 NllPointer Exception and ArithmaeticEsception are both derived fromu which cla Answer: (a) Error (b) 1OException (e) RuntimeException (d) IllegalAccessException 30. In order to have

Java6
 Java6 NllPointer Exception and ArithmaeticEsception are both derived fromu which cla

NllPointer Exception and ArithmaeticEsception are both derived fromu which cla Answer: (a) Error (b) 1OException (e) RuntimeException (d) IllegalAccessException 30. In order to have soane code throw an exception, you would ase which of the folowing reserved words? Answer: (a) throw (b) thrown (c) try (d) Throvable 31. Assurne Exceptlonnane is a checked exceptice. If a methond us a clos that can grate ceptionnane. then either tha, martlxxl mast ield, try ami catch atatetitswirre a Exceptionnase, or the method headee st inclode the statenent Answor: [ (a) throw Excoptionsane (b) throvs Exceptionane (c) catch Exceptionsane (d) catches Exceptionase 32. Which of the follewing is NOT true of the Runtime Eiseptions clus Answer: (a) All RantineExceptiona throw chocked (b) All RuntineExceptions are Throwable okjects (e) RustineException has child clasos ArithaeticException and SallPoisterExceptiom (d) RastinoRxception objects are not Error objects 33. If an exception is throws and is not canght anywhere in the peogram, thes the peogr terminates Answer: (a) tre (b) false ments, and may or may not have a fnally cluse Answen (a) true (b) fabe 34. A try statement ust have at least one eatch statemen, brat could have any eatch stake 35. Programmers can detine their own Esxorptioes ty esteg the Esoptin dhes s oe of the 36. All clusses in Javas are directly or inlirecetly wabclaes of the folowing cles Answer 37. Which of the following is Not a method of the Ob ject clases? Answer: descendants of the Exception class. Answers (a) true(b) false (b) String (c) Raference ) object (a) Wrapper (a) compareTob)equals (c) toString(d) a, b, and c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!