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 |
Define iterator and methods in iterator?
How to overcome the exception object reference not set to an instance of object?
What are abstract classes and anonymous classes?
1 Answers Flextronics, Thomson Reuters, Virtusa,
How u dubugg ur project?
What is contractor means and methods?
What is the simpletimezone class in java programming?
Can you explain the final method modifier?
Why is multiple inheritance not supported in java?
What is a consumer in java?
Explain JPA in Java.
What is meant by class loader and how many types are there?
what is the life cycle of jsp?