where is .equals() method and how is it different from ==
operation <giving some confusing implementation> Is hashing
related to these?
Answer Posted / pavan kumar pathivada
The code by Namita works successfully but you need to make
certain changes to understand the concept.for every .equals
comparison in the code only two strings are considered
everytime i.e str and str3. Note that the hash code
functions also need to changed for str6 and str7.
anywys...great work namita...helped me a lot...thnks...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is abstract class in Java?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
In Java list the methods that can be overridden?
Name few java 8 annotations ?
What is meant by polymorphism?
What is the difference between array list and vector in java?
How many types of gc are there in java?
What is stream api in java8?
What is a constructor, constructor overloading in java?
What is difference between identifier and variable?
What is the use of object and class classes?
How does hashset works in java?
What does || mean in code?
What is public static?
Is java type safe?