what is the use of Integer.MIN_VALUE
why we should use Integer.MIN_VALUE
Archived
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
22 May 2019, 15:16
MIN_VALUE is so you don't need to remember what the actual minimum value of an integer is (it is -2147483648). You may be able to remember that, but can you also remember what the min value of a long is (Long.Min_VALUE), or decimal (Decimal.MIN_VALUE), or short, byte, float etc
+1