int myInt='A';
char myChar='A';
System.out.println(myInt == myChar);
Above code is giving output - true
I feel it should be false.
When I print System.out.println(myInt); it gives 65 and System.out.println(myChar); gives A.
So the output for System.out.println(myInt == myChar); should be false. isn’t it?
Please help me to understand.
Replace this line with your code.
<do not remove the three backticks above>