Copyright

Catching Multiple Exceptions in Java

Instructions:

Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

Which of the following correctly catches two exceptions?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. Exceptions are stored in classes and subclasses of which main Class?

2. You are writing code to catch multiple exceptions, but the compiler shows this error. What does it mean?

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

The questions on this quiz and worksheet test your knowledge of classes and subclasses in Java that store exceptions. You must also know about the catching of exceptions.

Quiz & Worksheet Goals

Tested information includes:

  • Which main class exceptions are stored in
  • Catching multiple exceptions
  • The meaning of a given error

Skills Practiced

  • Knowledge application - use your knowledge to identify the appropriate catch block for a given code
  • Reading comprehension - ensure that you draw the most important information from the lesson on exceptions in Java
  • Information recall - access the knowledge you've gained regarding the catching of exceptions to interpret a given image

Additional Learning

Learn more about Java by reviewing the lesson titled Catching Multiple Exceptions in Java. The objectives covered include the following:

  • Know what a try and catch block does
  • Review the throwable class
  • Understand the hierarchy of classes
Support