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  How do I check if a string is null in Java 8?

Leave a Reply

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