public class test{ //declaring class with name "test"
static public void main(String[] args)
{
    Long a=111L;  //declaring Long type variable
    Long b=111L;  //declaring Long type variable
    Long c=222L;  //declaring Long type variable
    Long d=222L;  //declaring Long type variable
    System.out.println((a==b)+" "+(c==d)); /*output is "true false". I dont know Why? Please explain  */
}
}
 
     
    