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

CSE MCQs :: JAVA MCQs

  1. When does Exceptions in Java arises in code sequence?
  2. A.
    Run Time
    B.
    Compilation Time
    C.
    Can Occur Any Time
    D.
    None of the mentioned

  3. Which of these keywords is not a part of exception handling?
  4. A.
    try
    B.
    finally
    C.
    thrown
    D.
    catch

  5. Which of these keywords must be used to monitor for exceptions?
  6. A.
    try
    B.
    finally
    C.
    throw
    D.
    catch

  7. Which of these keywords must be used to handle the exception thrown by try block in some rational manner?
  8. A.
    try
    B.
    finally
    C.
    throw
    D.
    catch

  9. Which of these keywords is used to manually throw an exception?
  10. A.
    try
    B.
    finally
    C.
    throw
    D.
    catch

  11. Which of these is a super class of all exceptional type classes?
  12. A.
    String
    B.
    RuntimeExceptions
    C.
    Throwable
    D.
    Cachable

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

  15. Which of these class is related to all the exceptions that cannot be caught?
  16. A.
    Error
    B.
    Exception
    C.
    RuntimeExecption
    D.
    All of the mentioned

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

  19. Which of these keywords is used to manually throw an exception?
  20. A.
    try
    B.
    finally
    C.
    throw
    D.
    catch