what is the difference between equals method and ==
Answer Posted / anoop
Normally == using to compare value type. If 2 object is
refering same memmory, it will return true otherwise false
Comparing object , you have to use equals, bz it will
compare all the values in it.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can you explain the cs option of java interpreter?
worst case complexities of Quick sort and Merge sort.
What are the differences between processes and threads?
Can we extend singleton class in java?
Describe the term diamond problem.
Is nullpointerexception checked or unchecked?
What is finally in Java?
Implement a stack with push (), pop() and min() in O(1) time.
Why singleton class is used in java?
How does enum work in java?
Why packages are used?
What is the relationship difference the canvas class and the graphics class?
What is compareto () in java?
What is the difference between equals() and?
How do you download stubs from Remote place?