InterviewSolution
Saved Bookmarks
| 1. |
If a catch block accepts more than one exceptions then __________________(a) The catch parameters are not final(b) The catch parameters are final(c) The catch parameters are not defined(d) The catch parameters are not usedI got this question in final exam.Question is from Catching Class Types topic in portion Exception Handling & Static Class Members of Object Oriented Programming |
|
Answer» RIGHT answer is (b) The catch PARAMETERS are final To EXPLAIN: The catch parameters are made final. This is to ensure that the parameters are not changed INSIDE the catch block. Hence those RETAIN their values. |
|