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

Question 6 [9]
6.1 In what situations (in general) would you use a
TreeMap? (3)
6.2 In what situations (in general) would you use a HashSet
to store a collection of
values?

Answer Posted / ashima

TeeMap is used when the data is to be stored in a sorted
order of the keys.
HashSet is used when it is not required to store the data
in the sroted order. Also, the insertion, deletion and
selection is faster in HashSet.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the states associated in the thread? : Java thread

1113


what happens when a thread cannot acquire a lock on an object? : Java thread

1106


How to split arraylist elements in java?

1234


java program with complete 4 oops concepts implemented example

3215


What does it mean that a method or field is “static”?

1030


What is the need of transient variables in Java ?

1119


How does finally block differ from finalize() method?

1110


What are the parts of methodology?

1038


Write a program in java to establish a connection between client and server?

1020


What is protected in java?

1048


can rmi and corba based applications interact ?

1126


Is java a prime method?

1044


Can we overload the methods by making them static?

1050


How to sort array of 0 and 1 in java?

1005


Explain about automatic type conversion in java?

1090