ptg7068951
Workshop 263
Workshop
Although this hour is literally filled with errors,see if you can answer the fol-
lowing questions about them without making any errors of your own.
Quiz
- How many exceptions can a single catchstatement handle?
A. Only one.
B. Several different exceptions.
C. This answer intentionally left blank. - When are the statements inside a finallysection be run?
A. After a try-catchblock has ended with an exception
B. After a try-catchblock has ended without an exception
C. Both - With all this talk about throwing and catching,what do the Texas
Rangers need to do in the off season?
A. Get more starting pitching.
B. Sign a left-handed power-hitting outfielder who can reach the
short porch in right.
C. Bring in new middle relievers.
Answers
- B.AnExceptionobject in the catchstatement can handle all excep-
tions of its own class and its superclasses. - C.The statement (or statements) in a finallysection always are exe-
cuted after the rest of a try-catchblock,whether an exception has
occurred. - A.Every answer is correct,but A is more correct than the others and
will probably be correct for the next 30 years.