Give several reasons why exception-handling techniques should not be used for conventional program control

What will be an ideal response?


Exception handling is designed to handle infrequently occurring situations that often result in program termination, so compiler writers are not required to implement exception handling to perform optimally. (b) Flow of control with conventional control structures generally is clearer and more efficient than with exceptions. (c) Problems can occur because the stack is unwound when an exception occurs and resources allocated prior to the exception might not be freed. (d) The “additional” exceptions make it more difficult for you to handle the larger number of exception
cases.

Computer Science & Information Technology

You might also like to view...

What is the Linux version of a Windows stop error?

A. BSoD B. OS error C. Red alert D. Kernel panic

Computer Science & Information Technology

How can you customize the appearance of a JFrame?

What will be an ideal response?

Computer Science & Information Technology

Which of the following is NOT a major cause of ERP implementation failure?

A. Failure to involve affected employees in the planning and development phases B. Failure to perform testing for the new system C. Insufficient funding D. Insufficient training

Computer Science & Information Technology

Which of the following is not a purpose for using hubs in a network?

a. to act as a communications server b. to connect network cables c. to prevent attenuation d. to act as a junction box e. none of the above

Computer Science & Information Technology