随笔-8  评论-0  文章-0  trackbacks-0
  2005年8月18日
 
public class NullPointerException
extends RuntimeException

当一个应用在需要一个对象的地方试图使用 null 时抛出。它们包括:

  • 调用一个 null 对象的实例方法。
  • 访问或修改一个 null 对象的域。
  • null 作为一个数组,使用它的长度。
  • null 作为一个数组,访问或修改它的插口。
  • null 作为一个 Throwable 值抛出。

应用应该抛出该类的实例,指示其它对 null 对象的非法使用。






构造子索引

NullPointerException()
构造一个没有详细消息的 NullPointerException
NullPointerException(String)
构造一个具有指定详细消息的 NullPointerException




构造子

NullPointerException
 public NullPointerException()
构造一个没有详细消息的 NullPointerException

NullPointerException
 public NullPointerException(String s)
构造一个具有指定详细消息的 NullPointerException

参数:
s - 详细消息。

posted @ 2005-08-25 13:43 hegen 阅读(1009) | 评论 (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 阅读(174) | 评论 (0)编辑 收藏
 看完了程功的故事后,感到只有稳扎稳打才是真,只有努力才能成功,我是笨鸟,笨鸟只有以勤补拙,笨鸟是要先飞的.
posted @ 2005-08-18 00:44 hegen 阅读(163) | 评论 (0)编辑 收藏