Created
March 30, 2011 01:03
-
-
Save hakanai/893674 to your computer and use it in GitHub Desktop.
WHY THE FUCK DOES THIS COMPILE?
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 Overflow | |
| { | |
| public static void main(String[] args) | |
| { | |
| int value = 2000000000; | |
| long increment = 1000000000; | |
| value += increment; // no problemo! | |
| System.out.println(value); | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By the way,