Java tutorial
public class Main { public static void main(String[] args) { Integer x = new Integer(50); Float y = new Float(50f); System.out.println(x.equals(y)); System.out.println(x.equals(50)); } }