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

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Extend Index

Extend Page # 5

Reflective Question 1

In C and C++, there is no standard technique for handling exceptions. Different programmers have used different methods as they saw fit. For example, one widely-used technique is for each method to return a number, where the number indicates the type of exception encountered. Another is to provide a class with an attribute that indicates whether the last method was successful or not. Java provides a standardised exception handling scheme, and all programmers are encouraged to use it. What advantages does the Java exception scheme have over the C++ schemes?

Discussion of Reflective Question 1

Back to top

 basicline.gif (169 bytes)

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