This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
1 and 2 are not same thing. 1 is identical to b=(byte) b+10; works fine. 2 does not compile because b is converted to int (due to + operator) and after adding 10, the result(int) can not be assigned to byte value.
posted 11 years ago
hi Areca ... b=(byte)b+10;wont work ...will give loss of precision ...i think u mean to say b=(byte)(b+10)..this will work fine .....