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 is the use/perpose of having a method antive?
What are the different types of collections in java?
What is the largest number a double can hold?
What is the default initialized value of String type variable?
For class CFoo { }; what default methods will the compiler generate for you>?
Write a program to print count of empty strings in java 8?
Explain about object oriented programming and its features?
What is the use of a copy constructor?
write a program to create an vector and listeterator.and value should be enter through keyboard.
From the two, which would be easier to write: synchronization code for ten threads or two threads?
How do you compare two objects?
What is subsequence of a string?