what is the difference between equals method and ==

Answer Posted / suganthi

equals method will compare two strings where two strings are
equal or not but == method will compare reference variables.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is implicit object in java?

550


Is treeset sorted in java?

585


What does exclamation mean in java?

575


What is a class instance variable?

624


What is data type in computer?

521






What is unmodifiable list in java?

536


Can we create an object of static class in java?

598


Is it possible to compare various strings with the help of == operator?

549


What is meant by overloading?

590


What is static data type in java?

546


What is remote method invocation (rmi)?

615


What does null mean in java?

631


Difference difference paint() and paintcomponent()?

532


Difference between object instantiation and construction ?

583


What is a control variable example?

530