What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-15 10:42:02
importance of throws keyword in java
Throws statement is used at the end of method signature to indicate that an exception of a given type may be thrown from the method. The main purpose of throws keyword is to delegate responsibility of exception handling to the caller methods, in the cas... Add solution -
Other 2021-09-15 06:43:02
What are checked Exceptions
1) All the subclasses of Throwable class except error,Runtime Exception and its subclasses are checked exceptions. 2) Checked exception should be thrown with keyword throws or should be provided try catch block, else the program would not compile. We do... Add solution -
Java 2021-09-10 05:21:03
error vs exception
Both Error and Exception are derived from Throwable in Java. Error represents errors which are generally cannot be handled. For examples: OutOfMemoryError, NoClassDefFoundError Exception represents errors which can be caught and handled. For examples: IOE... Add solution