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 are mutable classes?
What is int argc char * argv?
What is the best definition for data?
Can we assign the reference to this variable?
Is java util regex pattern thread safe?
Which java version is latest?
What is the difference between stringbuffer and stringbuilder?
Tell us something about set interface.
What are java threads?
What is update method called?
please send me hr interview questions in it industry
What is floor in java?
What is stack example?
What are the differences between heap and stack memory in java?
How do you replace all in word?