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 the main function in java?
How do you initialize an arraylist in java?
What are the types of casting?
What is the static import?
What is console based application in java?
What do you understand by access specifiers in Java?
How can you make a class serializable in java?
What is complexity and its types?
What is class array in java?
Which data type is class in java?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What is the transient keyword?
What is the generic function?
Does string is thread-safe in java?
Write a program based on Java script program.