public class Boxing4 {
public static void main(String[] args) {
Integer i = 10;
Integer j = 10;
System.out.print(i==j);
System.out.print(i.equals(j));
}
}
Qual será a saída?
1)falsefalse
2)truetrue
3)truefalse
4)falsetrue
Outra
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));
}
}
Saída ?
1)falsefalse
2)truetrue
3)truefalse
4)falsetrue

