Should I use null in Java?

Allow null only if it makes sense for an object reference to have ‘no value associated with it’ . Don’t use null to signal error conditions. The concept of null exists only for reference types. It doesn’t exist for value types.

Sizin İçin Seçtik  What is Objects isNull () in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *