About 51 results
Open links in new tab
  1. java - max value of integer - Stack Overflow

    Feb 21, 2013 · @howlger Integer.MAX_VALUE + 1 is 0x80000000 in hex, because of the overflow (and equals to Integer.MIN_VALUE). If you convert it to unsigned (long), the sign bit will be treated like a …

  2. java - Explanation on Integer.MAX_VALUE and Integer.MIN_VALUE to …

    Jun 7, 2015 · I don't seem to understand how Integer.MAX_VALUE and Integer.MIN_VALUE help in finding the min and max value in an array. I understand how this method (pseudocode below) works …

  3. java - why Integer.MAX_VALUE - Stack Overflow

    Feb 22, 2012 · 36 System.out.println(Integer.MAX_VALUE + 1 == Integer.MIN_VALUE); is true. I understand that integer in Java is 32 bit and can't go above 2 31 -1, but I can't understand why …

  4. data structures - Integer.MAX_VALUE in java - Stack Overflow

    Jan 19, 2016 · Returning Integer.MAX_VALUE is nice if you certainly know that a number cannot possible be that high. I often use -1 as return value if an int cannot be negative, but if it can you need …

  5. How to get the value of Integer.MAX_VALUE in Java without using the ...

    Apr 6, 2014 · Integer.MAX_VALUE, is a "static constant" inside of the "wrapper class" Integer that is simply the max value. Many classes have static constants in them that are helpful.

  6. java - What happens when you increment an integer beyond its max …

    Feb 27, 2011 · 59 In Java, what happens when you increment an int (or byte/short/long) beyond it's max value? Does it wrap around to the max negative value? Does AtomicInteger.getAndIncrement() also …

  7. java Integer.MAX_VALUE, MIN_VALUE overflow - Stack Overflow

    When you try to add to e.g. Integer.MAX_VALUE and hold the result in an int, the variable will overflow, and the result will remain a value somewhere between MAX_VALUE and MIN_VALUE.

  8. java - Integer min and max values - Stack Overflow

    Jun 16, 2014 · I was studying from a Java object programming book and performing the tutorials and examples on the book simultaneously on computer. In the book it says that the maximum and …

  9. java - Why is 2,147,483,647 the max int value? - Stack Overflow

    May 13, 2018 · Can someone provide me with a detailed explanation of why 2,147,483,647 is the maximum integer value in Java?

  10. java - Explanation on "Integer.Max_Value" and Integer.Min_Value

    My professor specified that she wants the minimum grade stored in Integer.Max_Value and the maximum grade in Integer.Min_Value. I'm having a rough time comprehending this.