Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which one of the following is the right description for the method getMessage()?

a) Returns the message if it is passed to the constructor
b) Returns the message if it is passed to the class
c) Returns the message if it is passed to the file
d) Returns the message if it is passed to the object

Answer: a
Explanation: The function getMessage() gets the exception message. It returns the message if it is passed to the constructor.

Join The Discussion