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 identifier with example?
Will the jvm load the package twice at runtime?
What is a lightweight component?
What does s mean in regex?
why using interface interface ?
Is java platform independent?
How will you reverse a link list without using recursion?
what is method reference in java 8?
Why stringbuffer is faster than string?
What is assembly language?
What is method reference?
How does varargs work in java?
What are basic keywords?
Can we override constructor?
What is the size of boolean variable?