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

How to reverse string in java?

1174


How we create object in copy constructor?

1095


What do you know about the garbage collector?

1082


Write a program to find the whether a number is an Armstrong number or not?

995


Explain an algorithm to find depth of a binary tree.

1026


How many wrapper classes are there in java?

997


What are synchronized methods and synchronized statements in java programming?

990


Why charat is used in java?

1038


What is native code?

1089


What is the difference between the ">>" and " >>>" operators in java?

962


What are drawbacks of singleton class?

939


How do you clear a method in java?

991


why would you use a synchronized block vs. Synchronized method? : Java thread

936


What is return in java?

943


I don’t want my class to be inherited by any other class. What should I do?

999