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


Please Help Members By Posting Answers For Below Questions

What do you mean by access modifier?

552


What do you mean by Function Overloading in java?

624


What is compareto?

542


What is the multi-catch block in java?

528


What does .equals do in java?

527






What is functional interface in javatpoint?

508


What are keywords and reserved words in java?

553


What is class??

753


What is quick sort in java?

552


Explain exception chaining in java?

606


Why do we need singleton?

535


Why are the methods of the math class static?

576


What is difference between float and double?

496


What is complexity and its types?

520


Can we declare register variable as global?

505