Chapter 9.0

3

Click here to load reader

Transcript of Chapter 9.0

Page 1: Chapter 9.0

EXCEPTION HANDLING

Chapter 9:

Page 2: Chapter 9.0

Contents

Catching Exception

Throwing Exception and Multiple catch Block

Propagating Exception

Type of Exceptions

Page 3: Chapter 9.0

Learning Goals

Improve the reliability of code by

incorporating exception-handling.

Implement the try-catch blocks for

catching and handling exceptions.

Write methods that propagate

exceptions.

Distinguish the checked and unchecked,

or runtime, exceptions.