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

          當一個應用在需要一個對象的地方試圖使用 null 時拋出。它們包括:

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

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






          構(gòu)造子索引

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




          構(gòu)造子

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

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

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

          posted @ 2005-08-25 13:43 hegen 閱讀(1023) | 評論 (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 閱讀(188) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 清远市| 夏河县| 安国市| 凌云县| 诸城市| 康平县| 大渡口区| 额尔古纳市| 松原市| 微山县| 舞钢市| 田东县| 湘潭县| 三原县| 洛隆县| 大冶市| 建瓯市| 崇仁县| 宣城市| 手机| 汉沽区| 中卫市| 西昌市| 安化县| 新巴尔虎右旗| 栖霞市| 汉沽区| 南雄市| 出国| 那坡县| 海兴县| 惠安县| 资阳市| 太原市| 涡阳县| 威海市| 红原县| 西畴县| 东方市| 岳普湖县| 佛学|