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

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Content Index

Content Page # 44

Java ‘error’ classes

In Java, the word ‘error’ usually denotes a system error . That is, a problem arising from hardware or from a logical error in the Java system itself. A typical example of a system error is not having enough memory to complete a method.

Like run-time exceptions, the program does not have to handle errors. Indeed, Java standards recommend that the program does not handle these exceptions. The reason for this is that if the computer or the program is in a state where such an error occurs, it is probably impossible for the program to do anything useful. For example, if the program runs out of memory, then it won’t be able to do anything to correct this situation because it won’t have enough memory to carry out whatever corrections are required.

In Java, errors are subclasses of the Error class.

Back to top

basicline.gif (169 bytes)

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