fork(3) download
  1. class Ideone {
  2. public static void main (String[] args) {
  3. Object x = 3044;
  4. Object y = x;
  5. System.out.println(saoIguais(x, y));
  6. }
  7. public static boolean saoIguais(Object obj, Object obj2) {
  8. return obj == obj2;
  9. }
  10. }
Success #stdin #stdout 0.05s 4386816KB
stdin
Standard input is empty
stdout
true