[JAVA] Why null is said to be bad

Premise

problem

Why null is said to be bad

Short answer

null itself is not bad. It can be said that there are cases where the nullable unsafe type is also convenient for limited use. The bad news is that languages have made nullable unsafe types the default types (eg Java, C #, Objective-C). Such languages unnecessarily run the risk of run-time exceptions as a result of abusing nullable and unsafe types.

[^ 10]: Almost agree with the next article null unsafe languages are no longer legacy languages -Qiita

Long answer

TBW

reference

Recommended Posts

Why null is said to be bad
Why null is said to be bad
Why Fat Controller Aunt
[For beginners] Ruby is said to be ruby, but what about it?
Null value is entered when assigning to an array
Is 100% CPU usage bad?
Why preventDefault is needed
Convert an array that may be null to a stream