public class Boxing5 {
public static void main(
String[] args) {
Integer i = 200;
Integer j = 200;
System.out.print(i==j);
System.out.print(i.equals(j));
}
}
output for the above code is falsetrue
public class Boxing5 {
public static void main(String[] args) {
Integer i = 20;
Integer j = 20;
System.out.print(i==j);
System.out.print(i.equals(j));
}
}
but o/p for the above code is truetrue