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 variable and example?
What is a vector in java?
What are static methods?
What is the static field modifier?
What is the platform?
What is stack class in java?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
Can private class be extended java?
How do you sort an array in java?
What is the use of optional ?
Can we create object of static class?
What is the public field modifier?
What happens when a thrown exception is not handled?
What is an exception? difference between Checked and Unchecked exception in Java
How do you stop a thread in java?