class testOb
{
    public static void main(String[] args)
    {
        String a=new String("abc");
        String b=new String("abc");
        if(a==b)
            System.out.println("Hello World!");
        else
            System.out.println("xxxxxxxxxxxxxxxx");
       
        if(a.equals(b) )
            System.out.println("Hello World!");
        else
            System.out.println("xxxxxxxxxxxxxxxx");
               
    }
}