Created
March 30, 2017 09:06
-
-
Save dmikurube/5f16632ed34d3e3c009b606907091684 to your computer and use it in GitHub Desktop.
Integer calculation with long
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JavaLongCalc { | |
public static void main(String[] args) { | |
final long x = 50 * 1024 * 1024 * 1024; | |
final long y = 50L * 1024 * 1024 * 1024; | |
final long z = 50L * 1024L * 1024L * 1024L; | |
System.out.println(x); | |
System.out.println(y); | |
System.out.println(z); | |
} | |
} |
Author
dmikurube
commented
Mar 30, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment