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 conditionals and its types?
What is the difference between a method and a procedure?
How many types of memory areas are allocated by JVM in java?
How do you join strings in java?
What is classpath?
What is immutability in java?
How do you do exponents in java?
What is the primary benefit of encapsulation?
What is function overriding and overloading in java?
What is the difference between the boolean & operator and the && operator in java programming?
Why string is immutable or final in java
Which is easier .net or java?
What is a numeric literal?
What is the synonym of framework?
In java, what is the difference between method overloading and method overriding?