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

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

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

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






          構(gòu)造子索引

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




          構(gòu)造子

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

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

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

          posted @ 2005-08-25 13:43 hegen 閱讀(1024) | 評(píng)論 (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) | 評(píng)論 (0)編輯 收藏
           看完了程功的故事后,感到只有穩(wěn)扎穩(wěn)打才是真,只有努力才能成功,我是笨鳥,笨鳥只有以勤補(bǔ)拙,笨鳥是要先飛的.
          posted @ 2005-08-18 00:44 hegen 閱讀(175) | 評(píng)論 (0)編輯 收藏
          主站蜘蛛池模板: 辽中县| 巫溪县| 昭平县| 临海市| 永吉县| 山阳县| 广平县| 河池市| 榆社县| 慈溪市| 邹平县| 阿图什市| 定边县| 巴楚县| 南汇区| 安达市| 盐亭县| 铜梁县| 富蕴县| 威信县| 永德县| 民权县| 沙洋县| 沂南县| 东莞市| 桐乡市| 饶阳县| 镇巴县| 如东县| 潞城市| 平塘县| 五常市| 灵山县| 青浦区| 孝感市| 鹤峰县| 华蓥市| 商洛市| 海城市| 天门市| 合川市|