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 cr keyboard?
What are the three parts of a lambda expression?
Why does my function print none?
What is re-factoring in software?
What is local declaration?
Explain the difference between static and dynamic binding in java?
What happens when a thread cannot acquire a lock on an object in java programming?
What about interrupt() method of thread class ?
What is integer valueof?
Why do we need variables?
Why java is made?
What is data movement?
What is the meaning of variables in research?
Why are lists ordered in java?
What is Major and importance difference between for and foreach loop ?