|
|
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

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