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 a functional interface?
How do you include a string in java?
What is the purpose of default constructor?
What is a short in java?
Explain about the security aspect of java?
Can main() method in java can return any data?
Explain the differences between abstraction and encapsulation?
What do you mean by checked exceptions?
How many threads can java run?
What is finally and finalize in java?
What is a variable declaration?
What are measurable parameters?
What are adapter classes?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
Why do we need hashset in java?