Assume rest of code is correct & this is in a valid main(). char c=(char)-1; System.out.println(c);//This prints ? (a question mark) char d=(char)(Integer.MIN_VALUE); System.out.println(d);//This causes the program to exit without any error or Exception .WHY?? Although this is not directly related to certification,I am plain curious. Can anybody help?