隨筆-8  評論-0  文章-0  trackbacks-0
            2005年8月25日
           
          public class NullPointerException
          extends RuntimeException

          當(dāng)一個應(yīng)用在需要一個對象的地方試圖使用 null 時拋出。它們包括:

          • 調(diào)用一個 null 對象的實例方法。
          • 訪問或修改一個 null 對象的域。
          • null 作為一個數(shù)組,使用它的長度。
          • null 作為一個數(shù)組,訪問或修改它的插口。
          • null 作為一個 Throwable 值拋出。

          應(yīng)用應(yīng)該拋出該類的實例,指示其它對 null 對象的非法使用。






          構(gòu)造子索引

          NullPointerException()
          構(gòu)造一個沒有詳細(xì)消息的 NullPointerException
          NullPointerException(String)
          構(gòu)造一個具有指定詳細(xì)消息的 NullPointerException




          構(gòu)造子

          NullPointerException
           public NullPointerException()
          
          構(gòu)造一個沒有詳細(xì)消息的 NullPointerException

          NullPointerException
           public NullPointerException(String s)
          
          構(gòu)造一個具有指定詳細(xì)消息的 NullPointerException

          參數(shù):
          s - 詳細(xì)消息。

          posted @ 2005-08-25 13:43 hegen 閱讀(1027) | 評論 (0)編輯 收藏
           Single inheritance precludes some useful and correct designs.The problems of multiple inheritance arise from multiple inheritance of implememtion, but in many cases multiple inheritance is used to inhert a number of abstract contracts and perhaps one concrete implementtation.Providing a means to inherit an abstract contract without inheriting an implementation allows the typing benefits of multiple inheritance without the problems of multiple implementation inheritance.The inheritance of an abstract contract is termed interface inhertiance.
          posted @ 2005-08-25 02:14 hegen 閱讀(190) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 金华市| 报价| 石首市| 大新县| 沈丘县| 日照市| 饶阳县| 会昌县| 静乐县| 东山县| 郧西县| 谢通门县| 永登县| 云龙县| 丹凤县| 永兴县| 正蓝旗| 化德县| 沿河| 靖宇县| 阿克陶县| 黔西| 济宁市| 诏安县| 罗甸县| 临颍县| 苏州市| 泗阳县| 英吉沙县| 鄄城县| 塘沽区| 临邑县| 敖汉旗| 大理市| 舟山市| 井研县| 建德市| 凌云县| 象州县| 三台县| 丰原市|