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
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
How do you convert an int to a string in java?
What is the use of System class?
What is the difference between inheritance and encapsulation?
Why java is call by value?
What are the changes in java.io in java 8 ?
What is a line break example?
Explain the difference between intermediate and terminal operations in java8?
What is set and get methods in java?
What is meant by class loader? How many types are there?
What is a conditional equation?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
Differentiate jar and war files?
What does pointer mean?
What does the “final” keyword mean in front of a variable? A method? A class?