Answer by Dhruv Raval for Difference Between i = i+1 & i++
Finally i am found my problems(questions) superior understand so here describe it to understands others easily..!!! 1>i = i + 1In java whenever any arithmetic operation performs between two or more...
View ArticleAnswer by Prashant for Difference Between i = i+1 & i++
internally for short, char, byte and int datatype if any arithmetic operation is performed compiler will upgrade data type to int and perform the operation. compiler will change the data type of...
View ArticleAnswer by user253751 for Difference Between i = i+1 & i++
i++ and i+=1 implicitly cast the result back to the type of i.So if i is a byte, then i++; is not equivalent to i = i + 1; - it's actually equivalent to i = (byte)(i + 1);.From the Java Language...
View ArticleDifference Between i = i+1 & i++
Can anyone solve my confusion here is my code : byte i = 0;i++;System.out.println(i);Result: 1byte i = 0;i = i+1;System.out.println(i);Generate compile time error: Type mismatch: cannot convert from...
View Article
More Pages to Explore .....