Long occupies 8 bytes of memory. Despite the larger memory footprint, we needed Long for accurate timekeeping in milliseconds. 14 Int Int is a 32-bit data type used to store integral numbers. The variable 'count' was declared as an Int to store the number of items. 11 Long Long is a...
There is a shorter int type, coincidentally called short int which uses 16 bits (2 bytes). This holds numbers in the range -32768 to +32767. If you use a large umber of ints, you can possibly save memory by using short ints. It will not be any quicker, despite being half the siz...