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, toStringpublic 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.