Por qué?
public class why{
public static void main(String[] args) {
int a = 1000, b = 1000;
System.out.println(a==b); //true
Integer c = 1000, d = 1000;
System.out.println(c==d); //false
Integer e = 100, f = 100;
System.out.println(e==f); //true
}
}
Es sólo una pregunta que vi hace tiempo, no empiecen con que es tarea.
public class why{
public static void main(String[] args) {
int a = 1000, b = 1000;
System.out.println(a==b); //true
Integer c = 1000, d = 1000;
System.out.println(c==d); //false
Integer e = 100, f = 100;
System.out.println(e==f); //true
}
}
Es sólo una pregunta que vi hace tiempo, no empiecen con que es tarea.