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 |
Why array is used in java?
What is an array in java?
what is session facade ?
Explain differences between collection api and stream api?
hr interview how many minutes asking question
Is JRE required to compile Java files ?
Explain final, finalize() and finally?
What is variable length arguments in java?
What will happens if you opened Internet Explorer 4 times?
What is substring in java?
What is scope & storage allocation of global and extern variables? Explain with an example
Hey buddy.. can you please tell me about the use of marker interface? And is there any link between marker interface and factory methods? Thanks in advance.