i have to perform some task by checking if a char have a zero value and if a char has null '\u0000 value but don't know java compiler is treating both as same here's the sample code
char nullTest = 0;
System.out.println(nullTest == '\u0000'); //it is giving true
if i initialize it as nullTest = '0'
then it is giving false, but in my program I frequently assigns numbers & null '\u0000'
to this variable due to which it gives runtime errors,