Answer Posted / suman
The == operator works on String object references. If two
String variables point to the same object in memory, the
comparison returns a true result.
The equals method compares the actual char content of two
strings. This method returns true when two String objects
hold char data with the same values.
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How finally used under exception handling?
Which collection is ordered in java?
What is string made of?
Explain wait() method of object class ?
How many bytes is a url?
What is the Scope of Static Variable?
What is assembly condition codes?
What does the three dot emoji mean?
Is math an abstract class in java?
What is literal example?
What is the benefit of inner classes in java?
How to display arraylist values in java?
How do I get 64 bit java?
Define immutable object?
What is the new line character?