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...

where is .equals() method and how is it different from ==
operation <giving some confusing implementation> Is hashing
related to these?

Answer Posted / esha prasad

.equlas() method is in Object class which compares two
objects and returns true if both are same.

== compares whether two references pointing to same memory
location.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

921


How do you convert an int to a string in java?

1072


What is the use of System class?

1106


What is the difference between inheritance and encapsulation?

1101


Why java is call by value?

984


What are the changes in java.io in java 8 ?

977


What is a line break example?

944


Explain the difference between intermediate and terminal operations in java8?

1059


What is set and get methods in java?

933


What is meant by class loader? How many types are there?

1191


What is a conditional equation?

978


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1013


Differentiate jar and war files?

984


What does pointer mean?

988


What does the “final” keyword mean in front of a variable? A method? A class?

953