Compare the methods suggested in Problems 5 and 6. Which do you think is better and why?
Question:
Compare the methods suggested in Problems 5 and 6. Which do you think is better and why?
Data From Problem 5:
In languages without exception-handling facilities, it is common to have most subprograms include an “error” parameter, which can be set to some value representing “OK” or some other value representing “error in procedure.” What advantage does a linguistic exception-handling facility like that of Java have over this method?
Data From Problem 6:
In a language without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: