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 nan inf?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is lazy programming?
Can we call the constructor of a class more than once for an object?
What does percent mean in java?
how can you take care of mutual exclusion using java threads? : Java thread
What happens if a constructor is declared private?
How can we break singleton in java?
How to do encapsulation in java?
Can we have multiple classes in single file ?
What do you mean by thread safe?
What is a bufferedreader?
What are exceptions
How does a cookie work in Servlets?
What does ide stand for?