0

Is it necessary to remember the range of int and other data type in java? It seems very hard to do that.

2nd Jun 2017, 12:04 AM
Shivam Kumar
4 Réponses
+ 4
There's no need to remember that unless you are going to deal with big numbers like that in your code.
2nd Jun 2017, 12:07 AM
Ghauth Christians
Ghauth Christians - avatar
+ 2
No, even when dealing with large numbers you can just use: dataType.MAX_VALUE. Integer.MAX_VALUE = 2.1..b
2nd Jun 2017, 2:26 AM
Rrestoring faith
Rrestoring faith - avatar
0
Just remenber int composed of 4bytes.
2nd Jun 2017, 1:23 AM
Twelfty
Twelfty - avatar
0
thank you
2nd Jun 2017, 2:48 AM
Shivam Kumar