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...

where is .equals() method and how is it different from ==
operation <giving some confusing implementation> Is hashing
related to these?

Answer Posted / esha prasad

.equlas() method is in Object class which compares two
objects and returns true if both are same.

== compares whether two references pointing to same memory
location.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are class types in java?

1077


Explain notify() method of object class ?

1105


What is array in java?

1004


How to change value in arraylist java?

1179


Explain creating threads by extending thread class ?

1055


Define iterator and methods in iterator?

968


What is the relationship difference the canvas class and the graphics class?

1060


Explain the difference between transient and volatile in java?

1002


What is console based application in java?

1041


Does java initialize arrays to zero?

1034


Can static methods be inherited?

1050


Explain the difference between string, stringbuffer and stringbuilder in java?

1006


What is an infinite loop?

1255


Explain about arraylist?

1105


How we can skip finally block of exception even if some exception occurs in the exception block in java?

949