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 a treemap in java?
In how many ways we can do synchronization in java?
What is a class reference?
what is recursion in java
What is the length of a string?
What is nan inf?
What are the different http methods?
How do you call a reference in java?
What is application tier?
Can we have try block without catch block?
When do we use hashset over treeset?
How to sort list of list in java?
What do heavy weight components mean in java programming?
Is static variable stored in heap?
What is sortedset in java?