posted 19 years ago
In a subclass of a class you may declare that your overridden method throws the same exception as the superclass method, one or more subclasses of the exception, or no exception at all. You may not throw a checked exception that the superclass does not throw. It is generally a good idea to declare the throws even if you are not going to throw and exception, otherwise you restrict subclasses of your class in their ability to throw exceptions.
If you are implementing two interfaces with the same method signature other than the exceptions, you will be restricted to throwing only exceptions that both interfaces throw.