Hi Angela,
Originally posted by Angela Narain:
I did not understand as to why the byte is not converted to int ?
Are you referring to the increment in the first example?
If so, it is not promoted to an int because arithmetic promotion does not occur for prefix and postfix operators.
Jane has a good review of this in her notes on these pages:
http://www.janeg.ca/scjp/oper/prefix.html <a href="http://www.janeg.ca/scjp/oper/promotions.html<BR rel="nofollow">">
http://www.janeg.ca/scjp/oper/promotions.html --liz
[This message has been edited by Elizabeth Lester (edited August 22, 2001).]