what is the difference between equals method and ==
Answer Posted / upendar
== checks wheather two strings are pointing to same location
or not.
equals method checks wheather the strings are same or not
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is an exception in java?
What is variable and constant explain with example?
What are the topics in core java?
What are the basic concepts of OOPS in java?
What are the loops in java?
Define how destructors are defined in java?
What is array and arraylist in java?
Can we extend singleton class?
Is java written in c?
List types of storage classes in java?
What does the “static” keyword mean? Can you override private or static method in java?
What is field name?
How do you achieve polymorphism in java?
Why are global variables used?
What do you mean by inner class in java? Explain