Created
November 29, 2010 18:59
-
-
Save lukas2/720375 to your computer and use it in GitHub Desktop.
This file contains 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 App { | |
public static void main(String[] args) { | |
Integer b = 400; | |
Integer c = 400; | |
System.out.println(b == c); // => false | |
Integer b1 = 1; | |
Integer c1 = 1; | |
System.out.println(b1 == c1); // => true | |
Integer b2 = new Integer(1); | |
Integer c2 = new Integer(1); | |
System.out.println(b2 == c2); // => false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment