I read in a book (Thinking in Java by Bruce Eckel, 4th edition, page 47) that null is equal to '\u000'. And then I was wondering what exactly does '\u000' really mean.
As per my understanding null was nothing or absence of anything. And '\u000' comes in contradiction with this definition.
Can anyone clarify this issue about null and '\u000'?
The language specification is where null is defined, and it says
and
Rather a circular sounding definition, but the value of
nullis the null reference itself – just another pointer. The value of the null reference isn’t really relevant and is presumably up to the implementor, but zero or some other value that can’t be confused with another object address is likely.Confusion may be caused here because there is a character value called the null character with value
\u0000. This is the default value for type char.