Answers for "what happens when we throw an exception at method level in java"

3

throw error java

throw new java.lang.Error("this is very bad");
throw new java.lang.RuntimeException("this is not quite as bad");
Posted by: Guest on March-21-2021

Code answers related to "what happens when we throw an exception at method level in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language