0
Where do we use Long and short datatype?
4 Respuestas
0
long is for storing really large whole numbers, and short is only used when you know a value can't go over ~65000 and you want to conserve memory usage
0
what is the difference between int and long
0
Nathan the highest/lowest number they can hold, iirc int is from -2^32 to 2^31-1 and long is from -2^64 to 2^63-1
0
that's helpful... thanks