If you have developed any project Java, or if you have been maintaining enterprise application written in java, you must have encounter NullPointerException at some point in your programming life. They are a pain! I have encountered many production bugs which were because of NullPointerException and so should many of you who have been working in Java for some time. However, we do not know if anything that we could do here as NullPointerExceptions are a side effect of using 'null' reference which is very useful in representing an absence of value.
Null reference was first invented by Tony Hoare in 1965 while developing language Algol W. It was subsequently added to other languages. Tony Hoare himself called the invention of null reference a billion-dollar mistake!



Comments
Post a Comment