public class TestByte {
public static void main(String[] args) {
byte u[] = new byte[1999];
char pc ='?';
char t ='@';
char c = 0xfff1;
setPageControl((char) (-15 & 0x0000ffff));
setPageControl((char) (-16 & 0x0000ffff));
}
static void setPageControl(char pc)
{
if(pc == 0xfff0)
{
System.out.println("inside 0xfff0 question mark");
}
if(pc == 0xfff1)
{
System.out.println("inside 0xfff1 question mark");
}
}
}
can anybody help me in understanding this?if i print the character it prints '?' in both the SOPS.