Collection framework in Java
When we want to represent a group of individual object as a
single entity we should choose Collection.
Difference between
Collection and Collections
Collection is an interface, whereas Collections is a class in java. Collection is treated as base
interface in Collection framework, whereas Collections class consists exclusively of static methods that operate on or return
collections. Collections class is defined in java.util package.
9 Key Interfaces of
Collection framework
- Collection
- List
- Set
- SortedSet
- NavigableSet
- Queue
- Map
- SortedMap
- NavigableMap
s Collection framework Hierarchy
No comments:
Post a Comment