Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these class is related to all the exceptions that can be caught by using catch?
  2. A.
    Error
    B.
    Exception
    C.
    RuntimeExecption
    D.
    All of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Error class is related to java run time error that can't be caught usually, RuntimeExecption is subclass of Exception class which contains all the exceptions that can be caught.


Be The First To Comment