Are null checks bad?

Generally speaking, returning null from a method should be considered really bad . This forces the user of the method to do null checks and create conditional code paths.

Sizin İçin Seçtik  Which method can be used to check null in Java 8?

Leave a Reply

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