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 |
What is the static import?
What is the difference between array list and vector in java?
What is mnemonic code?
write a simple program inheritance?
define System.out.println(); what is the meaning!
Define inheritance with reference to java.
What are data types in programming?
Difference between Map & Hashmap
Is java still necessary?
briefley expalin about the packages
Does java return by reference?
Explain the reason behind ending a program with a system.exit(0)?