O'Reilly logo

Java, A Beginner’s Guide, 5th Edition by Herbert Schildt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Image Chapter 9 Self Test

1. What class is at the top of the exception hierarchy?

2. Briefly explain how to use try and catch.

3. What is wrong with this fragment?

Image

4. What happens if an exception is not caught?

5. What is wrong with this fragment?

Image

6. Can an inner catch rethrow an exception to an outer catch?

7. The finally block is the last bit of code executed before your program ends. True or False? Explain your answer.

8. What type of exceptions must ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required