InterviewSolution
Saved Bookmarks
| 1. |
Which one of the following keyword is used in conjunction with an Exception object?(a) throws(b) exception(c) throw(d) finalThis question was posed to me in an interview for job.My query is from Object Advanced Features topic in chapter Objects and Databases in PHP of PHP |
|
Answer» RIGHT choice is (c) throw For explanation I would say: The throw keyword is used in CONJUNCTION with an Exception object. It halts the execution of the current method and PASSES responsibility for handling the ERROR BACK to the calling code. |
|