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 the use of object and class classes?

1027


What is string args [] in java?

1015


Realized?

2168


What do you meant by active and passive objects?

1059


How many bytes is a string?

1119


Is the empty set a singleton?

957


Mention the default values of all the elements of an array defined as an instance variable.

967


Can static methods access instance variables in java?

1069


Why is it important to initialize a variable?

978


can I implement my own start() method? : Java thread

976


Can we execute a program without main?

999


Can we have any other return type than void for main method?

942


What is member in java?

992


Can a static class have a constructor?

993


Which is easier .net or java?

1069