Message m1=new Message("Hello");Message m2=new Message("Hello");if(!(m2.equals(m1)))log.info("m1 and m2 are not idential");else log.info("m1 and m2 are identical");///////////////out put//////////////m1 and m2 are not idential