I have doubt in Following code object references in java. here is the code.
public class Simple{
public static void main(String args[]){
Integer a=150,b=150;
System.out.println(a==b);
Integer c=100,d=100;
System.out.println(c==d);
}}
I can compile and execute the above code in online compiler and I got answers false true.And my doubt is Why i can't get second one is false? it's also object reference isn't it?. Please someone can help me to clear the doubt.Thanks in advance