Hi Sasha Just write a code that would throw the exception or use the throw clause. AssertionError is a good example of this.
posted 14 years ago
Suppose you have two methods- method A and method B. Method A calls method B. Suppose method B has a try block and a catch block. When the catch block of method B catches the exception, how would it rethrow the exception to method A?