varunumesh77
BAN USER
Questions (3)
Comments (2)
Reputation 220
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
If the two strings are equal, then the method must return true, else it must return false.
- varunumesh77 March 29, 2014Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Yes, you would also need to check if the references of the strings are same!
- varunumesh77 March 29, 2014For example String str1 = new "Hello";
String str2 = str1;
In this case too, the strings are equal.
I was not able to figure out how to do the locale part, any idea how to tackle that?