Mastering Java: The Ultimate Quiz for 'Thinking in Java' Flash Cards

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 50

Why might one use a null object instead of directly using null?

?

To avoid handling NullPointerExceptions and provide default behavior

Next

Report this question