I am comparing the following two lines of code and their output:
System.out.print("x = "+'\u0000');
output:
x =
System.out.print("x = "+null);
output:
x = null
We know that in unicode system '\u0000' is null so how does it print as the string "", while null is printed as "null"?