how to make a un-checked exception as a checked exception one.
Answers were Sorted based on User's Feedback
Answer / janardhan
If a client can reasonably be expected to recover from an
exception, make it a checked exception. If a client cannot
do anything to recover from the exception, make it an
unchecked exception.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / suvarna
Wrapping Checked Exceptions in Unchecked Exceptions
try {
// ... some code that could throw IOException or
RemoteException
} catch(Exception ex) {
throw new RuntimeException(ex.toString());
}
| Is This Answer Correct ? | 1 Yes | 2 No |
What are the restrictions that are applied to the java static methods?
Is set thread safe java?
wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Can we have a method name same as class name in java?
Can a abstract class be defined without any abstract methods?
What is runtime locatable code?
explain the clone method and clonable interface
What is an Applet ?
When can you say a graph to be a tree?
difference between arraylist and linkedlist otherthan performance
How can constructor chaining be done using this keyword?
What is the benefit of abstract class?