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
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?
Step by Step Solution
3.48 Rating (168 Votes )
There are 3 Steps involved in it
ANS WER The method suggested in Problem 5 which us... View full answer
Get step-by-step solutions from verified subject matter experts
