Ray's playground

 

Error Handling with Exceptions(Thinking in Java)

  When you override a method, you can throw only the exceptions that have been specified in the base-class version of the method. This is a useful restriction, since it means that code that works with the base class will automatically work with any object derived from the base class (a fundamental OOP concept, of course), including exceptions.

posted on 2010-03-10 21:07  Ray Z  阅读(234)  评论(0编辑  收藏  举报

导航