adplus-dvertising
frame-decoration

Question

Which of the following statements invoke the exception class?

a.

throws new Exception();

b.

throw new Exception();

c.

new Exception();

d.

new throws Exception();

Posted under PHP

Answer: (b).throw new Exception();

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statements invoke the exception class?