Professional Documents
Culture Documents
Collection Concept
Collection Concept
Collection Concept
3 Important Interfaces-
2. Set- Uniqueness
A] Hash Set- Does not maintain order
B] Tree Set- Follows order
3. Map- K, V pair In map never allows duplicate key, but it allows duplicate values
A] Hash Map- Does not maintain order
It allows one null key and multiple null values
B] Tree Map- Follows order
No null key and it allows multiple null values
Comparable Comparator
1. .lang .util
2. compareTo() equals(), compare()
3. It is used to single sequence sorting It is used to multiple sequence sorting