(I know what null is and what its is used for)
Question: OK, say we make a reference to an object in whatever language. The computer makes a little 32-bit (or other size, depending on computer's design) space in memory for that reference. That memory can be assigned to a value that represents an object's location in memory. But when I set the reference to null, what value does it really have? (what are the individual bits in the reference set to) Are the bits just zeroed out? But wouldn't that also be a location in memory? How does the computer tell that the reference contains null instead of a reference to an object?
I know this isn't an "important" question, but I'm curious as to how it works.
Thanks guys :D