What are your thoughts about explicitly checking for null in Java or other language that allows nulls? There are some alternatives but I don't know what think of it. I read an article recently(linked below), that suggests to throw exceptions, using Optional and other ...
Is there any case that would justify the usage of null checks?
I feel like checking for null is bad design but if so, why Java allows it in first place?
Please let me know your thoughts.
https://medium.com/javarevisited/avo...s-b3f11afbfcc9