What is a set?Write three different types of collection of objects.Discuss whether it is a set or not
Answers
Answer:-
A set is a well-defined collection of distinct objects, considered as an object in its own right. The arrangement of the objects in the set does not matter. A set may be denoted by placing its objects between a pair of curly braces.
Interfaces. Implementations
ImplementationsList. LinkedList, ArrayList
LinkedList, ArrayListSet HashSet, TreeSet
HashSet, TreeSetMap HashMap, TreeMap, Hashtable
Hope its helpful for u.....!!
______________________
A set is a well-defined collection of distinct objects, considered as an object in its own right. The arrangement of the objects in the set does not matter. A set may be denoted by placing its objects between a pair of curly braces.
Interfaces. Implementations
ImplementationsList. LinkedList, ArrayList
LinkedList, ArrayListSet HashSet, TreeSet
HashSet, TreeSetMap HashMap, TreeMap, Hashtable.