| [ Web Proxy ] |
| Viewing: https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/NullPointerException.html | [Back] [Original] |
Serializablenull in a
case where an object is required. These include:
null object.
null object.
null as if it were an array.
null as if it
were an array.
null as if it were a Throwable
value.
Applications should throw instances of this class to indicate
other illegal uses of the null object.
NullPointerException objects may be constructed by the
virtual machine as if suppression were disabled and/or the
stack trace was not writable.
NullPointerException with no detail message.NullPointerException with the specified
detail message.addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringNullPointerException with no detail message.NullPointerException with the specified
detail message.s - the detail message. If a non-null message was supplied in a constructor it is
returned. Otherwise, an implementation specific message or
null is returned.
getMessage in class Throwablenull.Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2021, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
| Web Proxy Viewer | New URL | Original Page |