what is the difference between equals method and ==
Answer Posted / sandeep arora
== checks the reference value, that the reference are of
same object or not.
equals method check two strings are same or not
| Is This Answer Correct ? | 26 Yes | 7 No |
Post New Answer View All Answers
What is tochararray in java?
What language is an assembler written in?
What is the difference between state-based unit testing and interaction-based unit testing?
What is byte data type?
Difference between process and thread?
How does enum work in java?
What access modifiers can be used for variables?
What is an example of a constant variable?
What are the differences between the constructors and methods?
Define how does a try statement determine which catch clause should be used to handle an exception?
How do you achieve polymorphism in java?
What is difference between public static and void?
Can we sort list in java?
Name container classes in java programming?
What are the three best choices for a development environment?