fork download
  1. class Ideone {
  2. public static void main (String[] args) {
  3. Integer a = 10;
  4. Integer b = 20;
  5. Integer c = a;
  6. System.out.println(a == c);
  7.  
  8. c = 30;
  9.  
  10. System.out.println(a);
  11. System.out.println(c);
  12. System.out.println(a == c);
  13. }
  14. }
Success #stdin #stdout 0.06s 46876KB
stdin
Standard input is empty
stdout
true
10
30
false