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
Explain the transient field modifier?
What is the new line character?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
Is nullpointerexception checked or unchecked?
What are the differences between string, stringbuffer and stringbuilder?
What do you understand by the term polymorphism?
what are the disadvantages of indexes in oracle?
Which is faster set or list in java?
Tell me the latest versions in java related areas?
What is a finally block?
Is break statement can be used as labels in java?
Is vector ordered in java?
Is null a string in java?
Can we define private and protected modifiers for variables in interfaces?
State the difference between strings and arrays.