comparing objects in java
1 flashcards · Programming Languages · by aBharathy
String name = "Thiruppathi"; String secondPerson="Thiruppathi" String city = new String("Thiruppathi"); if(name == city) System.out.println("equal from =="); else System.out.println("not equal from ==");