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 / 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 |
question on Thread synchronization
What is boolean logic?
How do you do exponents in java?
What are identifiers in java?
What is deadlock and how to avoid this?
Which one of the following suits the description of a string better: derived or primitive?
What are variable arguments or varargs?
How to create packages in java?
Write a java program to generate fibonacci series ?
What is passing by reference in java?
if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...
After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why?