Java Throwable getSuppressed() methodThe getSuppressed() method of Java Throwable class is used to return an array of all the exceptions that were suppressed to deliver this exception. If no exception were suppressed, an empty array will be returned. SyntaxReturnAn array of exceptions that were suppressed to deliver this exception. Example 1Output: Caught inside Main: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at ThrowableGetSuppressedExample1.main(ThrowableGetSuppressedExample1.java:19) Next TopicJava-throwable-initcause-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India