Why should exceptions not be used as an alternate form of program control?

What will be an ideal response?


Exception handling is designed to handle infrequently occurring situations that often result in program termination. Exceptions do not follow conventional forms of program control. Handling a larger number of exception cases can be cumbersome, and programs with a large number of exception cases can be difficult to read and maintain.

Computer Science & Information Technology

You might also like to view...

What is the difference between an algorithm with a higher complexity and an algorithm with lower complexity?

a. It is less efficient b. It is more efficient c. It is harder to implement d. It is easier to implement

Computer Science & Information Technology

What is the difference between a work package and a work product?

What will be an ideal response?

Computer Science & Information Technology

The ____ method returns the number of characters in the string.

a. str_size() b. str_length() c. size() d. length()

Computer Science & Information Technology

____ is a widely used, short-range communication technology that uses low energy, high speed signals

A. Bluetooth B. USB C. Infrared D. RF

Computer Science & Information Technology