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

Why do people says “java is robust”?

1037


What is the use of :: in java?

1015


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1057


v-model life cycle

2047


What an i/o filter?

1021


What is the difference between equals() and?

1195


How to change value in arraylist java?

1185


How we can run a jar file through command prompt in java?

971


What does opcode mean?

1088


Is an object null?

980


Explain how to force the garbage collection in java.

970


What will be the initial value of an object reference which is defined as an instance variable?

1150


How is Object Oriented Programming different from Procedure Oriented Programming?

1051


What is purpose of applet programming?

1188


Explain how to convert any java object into byte array.

980