What would happen if the try statement described in the previous exercise were moved to the level2 method?
What will be an ideal response?
If the try statement were moved from the level1 method to the level2 method, the exception thrown in level3 would propogate only to level2, where it would be caught and handled. The level2 method would then be allowed to finish execution.
You might also like to view...
OS/JCL __________ statements separate and identify jobs.
a. DD b. EXEC c. STEP d. JOB
Which statement is true regarding the principles of an object-oriented language?
A. Persistence is not an optional object-oriented language requirement. B. Inheritance does not occur when a new class is derived from an existing class or base class. C. Encapsulation means hiding data in a class from other classes. D. Class variables should not be global so all elements of the program can see them.
Describe Rawl's veil of ignorance.
What will be an ideal response?
A color square in the color palette is referred to as a ____.
A. column B. pixel C. pillar D. swatch