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

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

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

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






          構造子索引

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




          構造子

          NullPointerException
           public NullPointerException()
          
          構造一個沒有詳細消息的 NullPointerException。

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

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

          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)編輯 收藏
           看完了程功的故事后,感到只有穩(wěn)扎穩(wěn)打才是真,只有努力才能成功,我是笨鳥,笨鳥只有以勤補拙,笨鳥是要先飛的.
          posted @ 2005-08-18 00:44 hegen 閱讀(178) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 和平县| 木兰县| 武邑县| 淮滨县| 文山县| 鲁山县| 叙永县| 滁州市| 中西区| 睢宁县| 万州区| 贵州省| 福泉市| 北流市| 南丹县| 大埔县| 奉贤区| 临潭县| 平武县| 永修县| 温宿县| 东莞市| 安国市| 灵山县| 澳门| 临汾市| 博客| 夏邑县| 陇西县| 岱山县| 澄迈县| 尼勒克县| 汶上县| 靖边县| 昌江| 民乐县| 临漳县| 元江| 宾川县| 健康| 南华县|