How is it possible for two String objects with identical values?

How is it possible for two String objects with identical values not to be equal under the == operator?

Sonima
Views: 933 | Community Opinion: 1

Tags..  String Objects  Java Interview  Core Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Ronit Said..

The == operator compares two objects to determine if they are the same object in memory. It is possible for
two String objects to have the same value, but located indifferent areas of memory.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: