Thursday, March 12, 2009

Can an exception be re-thrown (CoreJava)

Question :Can an exception be re-thrown? (CoreJava)
Answer :Yes, the exception can be rethrown. And it will be rethrown to the caller
method to handle the exception. This process
continues till a method that handles this exception is called.
Its better to handle the exception using "Exception" class as its the parent
class that is being extended by all other
exception classes.

No comments: