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


Please Help Members By Posting Answers For Below Questions

How is Object Oriented Programming different from Procedure Oriented Programming?

595


Which keyword specify that a variable is effectively final ?

577


What is an interface in java? Explain

578


What carriage return means?

531


Why we do exception handling in java and how many types of exceptions are there?

548






What is scope & storage allocation of global and extern variables? Explain with an example

582


What is string syntax?

551


Is null == null in java?

654


What is Mutex (Mutual Exclusion Object) ?

629


What is collections framework?

581


Can inner class have constructor?

551


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

525


What are three ways in which a thread can enter the waiting state in java programming?

686


what is meant by encapsulation?

630


Explain notifyall() method of object class ?

669