what is the difference between equals method and ==

Answer Posted / ravikiran

equals will compare two objects,== will compare whether two
reference variables refer to same object or not

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

1853


What is the program compilation process?

587


Explain purpose of sleep() method in java?

620


What is difference between length and length() method in java ?

564


What is a final class ?

605






How can we create a thread in java?

589


What is the purpose of object oriented programming?

540


What are mutable classes?

525


What is a boolean in java?

579


How variables are declared?

517


What are recursive functions? Give some examples?

619


What is the difference between Error, defect,fault, failure and mistake?

662


Difference between collection, collection and collections in java?

569


What does microservices mean?

535


What is the difference between the file and randomaccessfile classes?

534