Download Z Microsystems SL Specifications
Transcript
Sun Services Method Overriding and Exceptions The overriding method can throw: • No exceptions • One or more of the exceptions thrown by the overridden method • One or more subclasses of the exceptions thrown by the overridden method The overriding method cannot throw: • Additional exceptions not thrown by the overridden method • Superclasses of the exceptions thrown by the overridden method Java™ Programming Language Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F Module 8, slide 15 of 25