📚 Practice Mode

Core Java-2

Learn at your own pace with hints and detailed explanations

1 / 20
Multiple Choice

Which method of the Throwable class returns the description of the exception in Java?

  1. void printStackTrace( )
  2. String getMessage( )
  3. String toString( )
  4. void printStackTrace(PrintWriter stream)
  5. String getLocalizedMessage( )