both are different variables (but looks similar), you can see that UTF-16 is different
int = 0; int p = 1; if ( == 0 && p == 1) { System.out.println("Success!"); System.out.println("p UTF-16 is " + (int) 'p'); System.out.println(" UTF-16 is " + (int) ''); }
Output
Success! p UTF-16 is 112 UTF-16 is 1088
source share