Vidyalelo
PHP · Q14

Exceptions And Error Handling

Programming · PHP · question 14

Q14

Which of the following statements invoke the exception class?

A.
throws new Exception();
B.
throw new Exception();
Answer
C.
new Exception();
D.
new throws Exception();

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board