what is the difference between equals method and ==
Answer Posted / nagarjuna
equals method check the contents of the objects and returns
the boolean value.
== check the objects references
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can we override compareto method?
Is call by reference possible in java?
What is void data type?
Can we create our own wrapper class in java?
How do you remove duplicates in java?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What is java autoboxing?
What is hashtable and explain features of hashtable?
What is a protected class in java?
How do you differentiate abstract class from interface?
What are the classes of java?
Is vector ordered in java?
Does importing a package imports its sub-packages as well in java?
Is space a string in java?
What is the use of :: in java?