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

How TreeMap sorts the objects inside it?? suppose if have
include one employee object and one car object. On what
basis it will sort?

Answer Posted / anuj

then u have to tell the trremap that on what basis elment
shoyuld be sorted all elemtns of trremap should be of type
comparable & in side comparable compare to u need to put
uor sorting logic.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How big is a pointer?

1029


What is Mutex (Mutual Exclusion Object) ?

1152


How can we create objects if we make the constructor private ?

1013


What is an immutable class? How to create an immutable class?

1065


What is methodological theory?

996


What is string data type?

974


What is thread safe in java?

995


What is anagram number?

951


Is java jre still free?

958


Can we compare two strings in java?

1023


What is the difference between serializable and externalizable interfaces?

1099


What is the purpose of the runtime class in java programming?

1060


What do you mean by default constructor in java?

1069


What are the string methods in java?

1096


What is the purpose of a volatile variable?

1060