Java 2 Primer Plus

   

Java™ 2 Primer Plus

By Steven Haines, Steve Potts

Table of Contents
Chapter 9.  Exception Handling

1:

How do you throw an exception?

2:

How do you handle an exception?

3:

Describe the keyword try and how it is used.

4:

What is the root class for all exceptions?

5:

What type of exceptions require the caller to explicitly handle them?

6:

What type of exceptions do not require that the caller explicitly handle them?

7:

Can a subclass method throw an exception that its superclass method does not explicitly declare?

8:

What is the throws keyword, and how does it differ from the throw keyword?

9:

Describe all the steps required to create a custom exception, and throw it from your own code.

10:

Why are exceptions Java classes as opposed to some other structure and how does that benefit you?


       
    Top
     

    Категории