1 package com.twister; 2 public class Mystery { 3 4 public static boolean isEqual(Integer f1,Long f2){ 5 return f1.equals(f2); 6 } 7 8 public static void main(String[] args) { 9 int f1 = 1; 10 long f2 = 1; 11 12 System.out.println("f1 is equals to f2 : "+ (f1==f2));//prints true 13 System.out.println("f1 is equals to f2 : "+ isEqual(f1,f2));//prints false 14 } 15 16 }