what is the difference between equals method and ==
Answer Posted / thevendhiran.k
equal method is used to check whether the two strings are
equal(same). exmpl: if the 1st string is 'deva' then it ll
check the 2nd is also 'deva'. whereas = is a assignment
operator used to assign a value to the variable.
| Is This Answer Correct ? | 13 Yes | 54 No |
Post New Answer View All Answers
What is treemap in java?
What is meant by tab pans?
What is garbage collection? Can it be forced to run?
Which of the following is not an isolation level in the JDBC
What about method local inner classes or local inner classes in java?
Why do we need autoboxing in java?
What are the different types of inner classes?
Can we use return in constructor?
Highest level event class of the event-delegation model?
What purpose do the keywords final, finally, and finalize fulfill?
Can we sort array in java?
How variables are declared?
How do you find the absolute value?
What is the difference between hashset and treeset in java?
why we use merge option in hybernate pls give a ex snippet