a b c d e f g h i
New member
maxvalue+1
why?
System.out.println(Integer.MAX_VALUE );
System.out.println(Integer.MAX_VALUE + 1);
2147483647
-2147483648
max value should be 11111111......1111111111111 and then plus 1 is 10000000000000000000000000000000
and 1 is overflow so we got 0 - > how the computer handle this?
why?
System.out.println(Integer.MAX_VALUE );
System.out.println(Integer.MAX_VALUE + 1);
2147483647
-2147483648
max value should be 11111111......1111111111111 and then plus 1 is 10000000000000000000000000000000
and 1 is overflow so we got 0 - > how the computer handle this?