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 are class types in java?
Explain notify() method of object class ?
What is array in java?
How to change value in arraylist java?
Explain creating threads by extending thread class ?
Define iterator and methods in iterator?
What is the relationship difference the canvas class and the graphics class?
Explain the difference between transient and volatile in java?
What is console based application in java?
Does java initialize arrays to zero?
Can static methods be inherited?
Explain the difference between string, stringbuffer and stringbuilder in java?
What is an infinite loop?
Explain about arraylist?
How we can skip finally block of exception even if some exception occurs in the exception block in java?