Home / CSE MCQs / JAVA MCQs :: Exception Handling - Java

CSE MCQs :: JAVA MCQs

  1. Which of these keywords is used to generate an exception explicitly?
  2. A.
    try
    B.
    finally
    C.
    throw
    D.
    catch

  3. Which of these class is related to all the exceptions that are explicitly thrown?
  4. A.
    Error
    B.
    Exception
    C.
    Throwable
    D.
    Throw

  5. Which of these operator is used to generate an instance of an exception than can be thrown by using throw?
  6. A.
    new
    B.
    malloc
    C.
    alloc
    D.
    thrown

  7. Which of these handles the exception when no catch is used?
  8. A.
    Default handler
    B.
    finally
    C.
    throw handler
    D.
    Java run time system

  9. Which of these keywords is used to by the calling function to guard against the exception that is thrown by called function?
  10. A.
    try
    B.
    throw
    C.
    throws
    D.
    catch