Java - Null

> Procedural Languages > Java

Table of Contents

1 - About

2 - Function

From java/util/objects

<code java>
import static java.util.Objects.requireNonNull;
.....
public constructor(String s)
{
    this.s = requireNonNull(s, "s is null");
}

See also:

Advertising
lang/java/null.txt · Last modified: 2018/10/01 16:23 by gerardnico