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 the use of set in java?
What is the preferred size of a component in java programming?
Can we use catch statement for checked exceptions?
Give few examples of final classes defined in Java API?
What is the constructor?
Is a class an object?
What is the difference between a choice and a list?
What are the restriction imposed on a static method or a static block of code?
Explain when classnotfoundexception will be raised ?
Does java map allow duplicates?
Tell me how many ways are there to initialise an integer with a constant.
Can a static block throw exception?
What is the difference between double and float variables in java?
What is bigger kb or mb?
Can we sort array in java?