Originally posted by Alan Chong:
Why not b and d ?
d is definitely correct.
Please note :
5.1.3 Narrowing Primitive Conversions
The following 23 specific conversions on primitive types are called the narrowing primitive conversions:
byte to char
short to byte or char
char to byte or short