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. }
  11.  
  12. //https://pt.stackoverflow.com/q/237794/101
Success #stdin #stdout 0.06s 32104KB
stdin
Standard input is empty
stdout
true