Could someone explain why Equal is part of output
public class EqualsTest {
public static void main (
String[] args) {
char A= '\u0005';
long L= 0x0005;
Io.prn("L = "+L); //1
Io.prn("A = "+A); //2
if (A == L)
System.out.println("Equal");
else System.out.println("Not Equal");
}
}
I understand char can upcast to long, but from the output of //1 and //2, I have problem
understand this. (A is not a number, L is 5).
thanks
chi-chih