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

How will you get the platform dependent values like line separator, path separator, etc., ?

1030


What is the abstraction?

1025


Where is java located?

1058


Can I extend singleton class in java?

1113


What is difference between classpath and path variables in java?

1201


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

1014


Can we sort set in java?

958


Is math class static in java?

1127


What is difference between static and final?

1078


What is the meaning of flag day?

1025


What are anonymous inner classes?

1015


Why are variables important in research?

946


Why are the objects immutable in java?

998


Why destructor is not used in java?

983


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

1166