public class NullPointerException extends RuntimeException
null
在对象是必需的。这些措施包括:
null
。null
对象领域。null
的长度,如果它是一个数组。null
插槽就好像它是一个数组。null
好像是一Throwable
价值。应用程序应该把这个类的实例表示的null
对象其他非法用途。NullPointerException
对象可以由虚拟机好像suppression were disabled and/or the stack trace was not writable。
Constructor and Description |
---|
NullPointerException()
创建一个不含详细信息
NullPointerException 。
|
NullPointerException(String s)
创建一个指定详细信息的
NullPointerException 。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NullPointerException()
NullPointerException
。
public NullPointerException(String s)
NullPointerException
。
s
-详细信息。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.