A

Admin • 832.27K Points
Coach

Q. Which method can be used to get the detail message of an exception?

  • (A) printStackTrace()
  • (B) getMessage()
  • (C) toString()
  • (D) getCause()

Explanation by: Admin

getMessage() returns the detail message string of the Throwable.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.