Maurice  Larson

Maurice Larson

1595681040

Null Keyword in Java (Tutorial)

Head to squarespace.com/alexlee to save 10% off your first purchase of a website or domain using code ALEXLEE

The null keyword in java lets you make a String or object empty.

String a = null;

Now if you try to use a method on “a”, you will get a null pointer exception. You can’t make a primitive type null.

I hope you enjoyed this null java tutorial!

#java #null

Null Keyword in Java (Tutorial)