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
what are Hostile Applets?
Is string is a class in java?
How does enum work in java?
What do you mean by order of precedence and associativity?
Can you instantiate the math class in Java?
What is difference between static class and singleton pattern?
Can you explain inner class.
What is object-oriented programming?
Explain about automatic type conversion in java?
Why is the main method static?
What is a singleton class? Give a practical example of its usage.
How many types of constructors are used in java?
what do you mean by java annotations?
Explain parallel processing in java8?
Why static functions are used?