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
If I only change the return type, does the method become overloaded?
What is t in generics in java?
Explain about object oriented programming and its features?
What the difference is between execute, execute Query, execute Update?
What are loops in java? What are three types of loops?
Can we change the scope of the overridden method in the subclass?
Why java is a platform independent? Explain
What is the use of static methods?
What is set string?
What checkbox method allows you to tell if a checkbox is checked?
What is the difference between numeric and integer?
Explain the concept of hashtables?
Why is serialization required?
Are registers volatile?
Is age a discrete variable?