Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String[] args) {
- Integer i1 = new Integer(123);
- Integer i2 = 123;
- int i = 123;
- System.out.println(i1 == i2);
- System.out.println(i == i1);
- System.out.println(i == i2);
- }
- }
- // out
- false
- true
- true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement