Finally i am found my problems(questions) superior understand so here describe it to understands others easily..!!!
1> i = i + 1
In java whenever any arithmetic operation performs between two or more variables then it's return value's type depends upon like this equation :
RETURN VALUE TYPE = (int, MAXIMUM RANGE OF VARIABLE-1, MAXIMUM RANGE
OF VARIABLE-N )
here, Return value type : int
For eqution (int, byte, byte) so int have maximum range..
byte -> 1 byte size &
int -> 4 byte size
That's why above exe i can't store that return value in byte directly it's require external type casting i = (byte) (i+1)
2> i++
In java whenever increment & decrement operation perform like these then it's return value's type depends upon this equation:
RETURN VALUE TYPE = (VARIABLE TYPE, VALUE + 1)
these equation denote internal type casting perform in this case
MUST REMEMBER:
case 1: External type cast require if needed
case 2: internal type casting perform automatically