
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ì)消息。
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.
看完了
程功的故事后,感到只有穩(wěn)扎穩(wěn)打才是真,只有努力才能成功,我是笨鳥,笨鳥只有以勤補(bǔ)拙,笨鳥是要先飛的.