how to make a un-checked exception as a checked exception one.
Answer Posted / 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 |
Post New Answer View All Answers
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
What state is a thread in when it is executing?
What are data types in programming?
Write a program in java to find the maximum and minimum value node from a circular linked list.
List some oops concepts in java?
What is hotjava?
Compare Mutex and Semaphore in java.
Can an interface have a constructor?
What are different types of arrays?
What class allows you to read objects directly from a stream in java programming?
What is array length?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is size_t?
What is annotation in java?
Can we overload destructor in java?