Both have struck fear into my heart – in the restroom and in my code!
In programming some languages make null the same as zero (C++) but some don’t (Java). In databases a record might have a null value in one field or it might have a zero and these are not the same. Zero is can be used to indicate a counted quantity whereas null cannot.
Null is the value given at instatiation before initialization and will result in Nullpointer error if used. Zero is a value. That’s for variables.
That is a thought-provoking visual!
In the world of Seinfeld, it’s the same… you “don’t have a square to spare”.
Thanks for the laugh!
I always thought the question was…What’s the difference between blank (“”) and null.
I love the sticking metaphore. One understands it for a lifetime. :)
A value vs. “”
Appreciated this SMILE
“Null” is blank, Zero has one digit “0”
Your email address will not be published.
Notify me of follow-up comments by email.
Notify me of new posts by email.
Enter your email address
Notify me of new posts!