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

why the equals method can be override?when we override the
equals method?

Answer Posted / subhareddy

equals method available in object class is for address
comparison not for content comparison.so for content
comparison we have to override equals method in our class.
wrapper classes and string class has overridden equals
method for content comparison.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List types of storage classes in java?

1222


What is java Applet?

1153


What is the purpose of format function?

1239


Is nan false?

1050


What do you mean by flow of struts?

1381


how to run ecllipse with jettyserver for windows environment using batch file

2147


Explain access modifiers in java.

1105


Can we sort list in java?

1023


How listener identify that the event came from a particular object?

2052


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

1199


What is the internal implementation of set in java?

995


What is the difference between int and integer in java?

1083


How do you read a char in java?

1093


What is the difference between checked exception and unchecked exception?

1060


Can we change the value of static variable?

1014