Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

whats the difference between == and .equal ?

Answer Posted / jai

== this is equal to it mainly compares only the values of
the object if both are equal it returns true or else false


eg. a=10,b=20
if (a==b)
it will return false



for the same case it will return false for .equals since
.equals will check only that the objects refr to the same
reference (address) of the instance


clear

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is size () in java?

1037


What is difference between iterator access and index access?

1015


What do you understand by casting in java language?

980


Is it possible to override private or static method in java?

944


What is boolean keyword in java?

1078


What is an immutable class?

1081


What is java instanceof operator?

989


What is scope & storage allocation of static, local and register variables? Explain with an example.

965


How do you create a sop?

949


What is stringreader?

905


What is meant by JVM? Is JVM platform independent or not?

1010


Explain the selection sort algorithm?

1007


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

1003


How does java enable high performance?

1091


What is string pool in java?

965