byte b1 = 127; b1 += 1;
127 is the maximum value for a byte variable. 128 is outside the range of byte values, but, due to number overflow, lowest possible negative number is returned, which is -128 for byte type>
Login in to like
Login in to comment
or Read more about Java Quizzes
Login in to like
Login in to comment