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
what state does a thread enter when it terminates its processing? : Java thread
What are the types of collections in java?
In a class implementing an interface, can we change the value of any variable defined in the interface?
Explain java code for recursive solution's base case?
Can a class extend 2 classes in java?
What are the differences between Java 1.0 and Java 2.0?
What is the main purpose of java?
Why synchronization is important in java?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
How do you get length in java?
Describe different states of a thread.
How do you achieve polymorphism in java?
Is math class static in java?
How do you sort a list in java?
List down the methods and interfaces of collection class in java.