user22070 Asked: 2020-09-04 08:57:28 +0800 CST 2020-09-04 08:57:28 +0800 CST 2020-09-04 08:57:28 +0800 CST What is the difference between Long type and Integer type in Java? 772 I can't see the difference between the two types. java 1 Answers Voted Best Answer DanielGS 2020-09-04T09:05:56+08:002020-09-04T09:05:56+08:00 Longuse 64 bit. Intuse 32 bit. So the number of different integer values they can take is different. In the following image extracted from here you can see the values that they comprise. Hope it has fit.
Long
use 64 bit.Int
use 32 bit.So the number of different integer values they can take is different. In the following image extracted from here you can see the values that they comprise.
Hope it has fit.