Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between equals method and ==

Answer Posted / devarathnam c,kotagudibanda(po

Hi...
"equals()" method always compares the content of an
object,but "==" operator compares the memory locations
(references).
eg: String s1="KOTAGUDIBANDA";
Where "s1" is a reference and "KOTAGUDIBANDA"is a content.

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between calling start() and run() method of thread?

1210


What is integer size in java?

1092


Which is better 64 bit or 32 bit?

984


How do you check if a string contains only numeric digits?

1175


Can we override protected method in java?

1114


What is the purpose of skeleton and stub?

1351


What is the default size of load factor in hashing based collection?

1105


What is data type example?

1005


whatis Home interface and Remoteinterface? with example?

2037


What is the function of java?

1054


What is a 16 bit word?

1072


How to find the largest value from the given array.

1066


When object is created and destroyed?

1145


What are the string methods in java?

1132


Explain notify() method of object class ?

1162