I found that when x and y are autoboxed to 400the output is Not same but when x and y are autoboxed to 40 they are coming as same.Why??
public class Demo1 {
public static void main(String args[]) {
Integer x = 400, y = 400;
if (x == y)
System.out.println("Same");
else
System.out.println("Not Same");
}
}