Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are integers in java? Why is there a range of values? Thank you.
What are integers in java? Why is there a range of values? Thank you.
Integer is an integer type and an int type. The range of values is because in a computer, all values are represented in binary, 2 is 10, 4 is 100 ... This/10 10-0/0 is all in memory, even the largest memory will be exhausted, so the number size represented has a range.