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
Why java is called not pure object oriented language?
What is try-with-resources in java?
What is the output of the below java program?
What are the 6 mandatory procedures for iso 9001?
Explain about main thread in java?
What is application tier?
What are alternatives to java serialization?
How to find the given number is a prime number or not by getting input from the user
What is an example of procedure?
how to write a program for sending mails between client and server
what methods would you overwrite in java.lang.object class?
Why unicode is important?
What is passing by reference in java?
What is default constructors?
What is use of set in java?