MCQOPTIONS
Saved Bookmarks
| 1. |
Nanda, a PHP programmer is checking for uninitialized variables and would want to throw an exception if any with an error code 5. Identify the correct statement Nanda should write |
| A. | throw new Exception(5,"Uninitialized Variable") |
| B. | new Exception(5,"Uninitialized Variable") |
| C. | throw new Exception("Uninitialized Variable",5) |
| D. | throw new Exception("Uninitialized Variable") |
| Answer» D. throw new Exception("Uninitialized Variable") | |