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 the benefit of using enum to declare a constant?

657


Why java does not support pointers?

557


You're given a Boolean 2D matrix, can you find the number of islands?

591


What is the meaning of flag day?

537


How list contains works in java?

550






What is the use of default method in interface in java?

549


What is oop in java?

522


What is data type in computer?

519


What is the use of flag?

577


Explain try and catch keywords in java?

619


Explain serialization and deserialization in java?

549


What is the use of put method?

514


Is passing by reference faster?

519


What are the two parts of a conditional statement?

510


What is final variable?

494