Understanding the difference between null and '\u000' in Java

后端 未结 4 1805
别那么骄傲
别那么骄傲 2020-12-02 13:36

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 e

4条回答
  •  隐瞒了意图╮
    2020-12-02 13:43

    \u000 would be the unicode representation of a character with ASCII code 0, but has nothing to do with null as used by Java.

提交回复
热议问题