Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The int will be 32bits even on 64 bit machines, you don't need to do anything.</p> <p>From the Java language spec (<a href="http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html" rel="noreferrer">http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html</a>)</p> <blockquote> <p>The int data type is a 32-bit signed two's complement integer. It has a minimum value of -2,147,483,648 and a maximum value of 2,147,483,647 (inclusive). For integral values, this data type is generally the default choice. This data type will most likely be large enough for the numbers your program will use, but if you need a wider range of values, use long instead.</p> </blockquote> <p>The primary difference between 32bit and 64bit java VMs is the maximum heap size, i.e. the amount of memory the VM can manage.</p> <p>However, the internal implementation of 64bit VMs will have an affect on memory usage:</p> <blockquote> <p>Generally, the benefits of being able to address larger amounts of memory come with a small performance loss in 64-bit VMs versus running the same application on a 32-bit VM. This is due to the fact that every native pointer in the system takes up 8 bytes instead of 4. The loading of this extra data has an impact on memory usage which translates to slightly slower execution depending on how many pointers get loaded during the execution of your Java program.</p> </blockquote> <p>From: <a href="http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_description" rel="noreferrer">http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_description</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload