Vidyalelo
PHP · Q34

Object Oriented Concept

Programming · PHP · question 34

Q34

Which one of the following keyword is used in conjunction with an Exception object?

A.
throws
B.
exception
C.
throw
Answer
D.
final

Answer: Option C

Solution

Answer: Option C
Solution:
The throw keyword is used in conjunction with an Exception object. It halts execution of the current method and passes responsibility for handling the error back to the calling code.