Which of the following is/are an exception? i) BadFunctionCallException ii) BadMethodCallException iii) LogicException iv) DomainException

Which of the following is/are an exception?
i) BadFunctionCallException
ii) BadMethodCallException
iii) LogicException
iv) DomainException
A. Only ii)
B. Only iii)
C. i), ii), iii) and iv)
D. Only iv)
 
Answer: c
Explanation: There are total 13 types of predefined exceptions SPL provide access to. BadFunctionCallException,BadMethodCallExceptio, LogicException, DomainException are also included in the exceptions.
 

Tìm kiếm

Back
Top