您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Apply Index

Apply Page # 7

Exercise 3 — Exceptions Summary

Complete the table below summarising the difference between exceptions, run-time exceptions, and errors in Java:

 

Handled by program

Subclass of

Example

Exceptions

 

Exception

 

Run-time exceptions

Optional

 

 

Errors

 

 

 

 

 

Complete the following statements that summarise the concepts explored in the ‘Interfaces’ section of this unit:

 

The keyword _____ is used to signal that an _________ has occurred.

When an exception has been ______, it must either be dealt with in the _______ ______ or thrown ‘_______’ to the calling method, which must deal with it in its turn.

To deal with an exception inside a ______ a ___/_____ structure is required.

Exceptions are _______, not classes.

___-____ exceptions and errors do not have to be caught, but if they are not the program will _________.

Discussion/Suggestion solution to Exercise 3

Back to content

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg