Can we add heterogeneous elements into treemap?
Answer / Ram Babu
No, TreeMap can only store key-value pairs where the key must be of a type that implements Comparable or provides an explicit Comparator. The values can still be of any type.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a data structure? What are the types of data structures?
Why do we use collections?
Is map a collection?
Explain about the types of linked lists
Can we null keys in treemap?
Is data structure a data type?
What is list and types of list?
There is a program which inserts and deletes node in a sorted singly linked list. There is a bug in one of the modules, how would you debug it?
Define secondary clustering?
Write a data structure for a queue.
1 Answers Tavant Technologies, Zensar,
Define articulation point?
What is the bucket size, when the overlapping and collision occur at the same time?