The ________ method of Throwable class can be used to retrieve the description of an exception.

  • getDescription()
  • getDescriptionText()
  • getExceptionDescription()
  • getMessage()
The getMessage() method of the Throwable class is used to retrieve the description or message associated with an exception. This message provides additional information about the exception, helping developers understand the cause of the error.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *