Zend PHP 5.3 Certification 200-530 Question # 34 Topic 4 Discussion

Zend PHP 5.3 Certification 200-530 Question # 34 Topic 4 Discussion

200-530 Exam Topic 4 Question 34 Discussion:
Question #: 34
Topic #: 4

What is the output of the following code?

try {

class MyException extends Exception {};

try {

throw new MyException;

}

catch (Exception $e) {

echo "1:";

throw $e;

}c

atch (MyException $e) {

echo "2:";

throw $e;

}}

catch (Exception $e) {

echo get_class($e);

}


A.

A parser error, try cannot be followd by multiple catch


B.

1:


C.

2:


D.

1:Exception


E.

1:MyException


F.

2:MyException


G.

MyException


Get Premium 200-530 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.