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 significance of listiterator in java?
Explain when noclassdeffounderror will be raised ?
What is an immutable class?
Will minecraft java be discontinued?
What is a classloader in java?
Can singleton class be cloned?
Why java applets are more useful for intranets as compared to internet?
What is constructor and its types?
Difference between static binding and dynamic binding?
why we use merge option in hybernate pls give a ex snippet
Why does java have two ways to create child threads? Which way is better?
How to use string tokenizer class.
Explain java coding standards for classes or java coding conventions for classes?
Can a class have an interface?
Give reasons supporting that string is immutable.