• Home
  • Which of the following method of Exception class retrieve the error message when error occured?
Question 1:
Which of the following method of Exception class retrieve the error message when error occured?
A. getMessage()
Feedback getMessage() method of Exception class returns the message of exception
B. getCode()
C. getFile()
D. getLine()

These questions are from this test. Would you like to take a practice test?

PHP Quiz 5 | Englishfreetest.com