Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.5K+ articles
Python
19.6K+ articles
Java
9.4K+ articles
Java-Functions
4.2K+ articles
Java-lang package
417+ articles
java-basics
334+ articles
Java-Exceptions
84+ articles
Java-Classes
79+ articles
Java-Exception Handling
45+ articles
java-Throwable
12 posts
Recent Articles
Throwable Class in Java with Examples
Last Updated: 30 June 2026
The Throwable class is the root class of Java's exception hierarchy. It represents all objects that can be thrown and caught during program execution. Both Exception and E...
read more
Java
Java-lang package
java-Throwable
Java-Classes
Throwable addSuppressed() method in Java with Examples
Last Updated: 29 May 2021
The addSuppressed?(Throwable exception) method of a Throwable class used to append the exception to the exceptions that were suppressed in order to deliver this exception....
read more
Java
Java-Exceptions
java-basics
Java-Exception Handling
Java-Functions
java-Throwable
Throwable setStackTrace() method in Java with Examples
Last Updated: 16 December 2021
The setStackTrace(StackTraceElement[] stackTrace) method of Throwable class is used to Set the stack trace elements to this throwable object and this stack trace will be r...
read more
Java
Java-Exceptions
java-basics
Java-Exception Handling
Java-Functions
java-Throwable
Throwable printStackTrace() method in Java with Examples
Last Updated: 24 January 2026
The printStackTrace() method in Java is widely used for debugging exceptions. It prints detailed information about an exception, helping developers understand where and wh...
read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
Throwable toString() method in Java with Examples
Last Updated: 09 January 2026
The toString() method of the java.lang.Throwable class is used to return a string representation of an exception or error. It is commonly used while printing exceptions to...
read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
Throwable initCause() method in Java with Examples
Last Updated: 01 July 2026
The initCause() method of the Throwable class is used to associate the original cause of an exception with another exception. It helps maintain the complete exception chai...
read more
Java
Java-Exceptions
Java-Exception Handling
Java-Functions
java-Throwable
Throwable getSuppressed() method in Java with Examples
Last Updated: 14 April 2023
The getSuppressed() method of Throwable class used to return an array containing all of the exceptions that were suppressed to deliver this exception typically this suppre...
read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
Throwable getStackTrace() method in Java with Examples
Last Updated: 26 April 2023
The getStackTrace() method of Throwable class used to return an array of stack trace elements which is the stack trace information printed by printStackTrace(). In the arr...
read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
Throwable getMessage() method in Java with Examples
Last Updated: 30 June 2026
The getMessage() method of the Throwable class is used to retrieve the detailed message associated with an exception or error. It returns the message passed when the excep...
read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
Throwable getLocalizedMessage() method in Java with Examples
Last Updated: 12 April 2023
The getLocalizedMessage() method of Throwable class is used to get a locale-specific description of the Throwable object when an Exception Occurred. It helps us to modify ...
read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
Throwable getCause() method in Java with Examples
Last Updated: 22 January 2026
The getCause() method of the Throwable class is used to retrieve the original cause of an exception. If no cause is associated with the exception, it returns null.It is ma...
read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
Throwable fillInStackTrace() method in Java
Last Updated: 28 December 2022
The fillInStackTrace() method, of java.lang.Throwable class, records within this Throwable object information about the current state of the stack frames for the current t...
read more
Java
Java-lang package
Java-Functions
java-Throwable