Skip to main content
clear answer
Source Link
Ahmed Nabil
  • 19.2k
  • 12
  • 70
  • 101

List :

  1. List is ordered grouping elements
  2. List provides positional access in the elements of the collections.
  3. We can store duplicate elements in the list.
  4. List interface is implemented by ArrayList, LinkedList, Vector, and Stack.
  5. List can store multiple null elements.

Set :

  1. Set is unordered grouping elements.
  2. Set doesn’t provide positional access in the elements of the collections.
  3. We can’t store duplicate elements in the set.
  4. Set interface is implemented by HashSet and LinkedHashSet.
  5. Set can store only one null element.
FactorListSet
Is ordered grouping elements?YESNO
Provides positional access by index?YESNO
Can store duplicate elements?YESNO
Can store multiple null elements?YESNO
Childs:ArrayList, LinkedList, Vector, and StackHashSet and LinkedHashSet

List :

  1. List is ordered grouping elements
  2. List provides positional access in the elements of the collections.
  3. We can store duplicate elements in the list.
  4. List interface is implemented by ArrayList, LinkedList, Vector, and Stack.
  5. List can store multiple null elements.

Set :

  1. Set is unordered grouping elements.
  2. Set doesn’t provide positional access in the elements of the collections.
  3. We can’t store duplicate elements in the set.
  4. Set interface is implemented by HashSet and LinkedHashSet.
  5. Set can store only one null element.
FactorListSet
Is ordered grouping elements?YESNO
Provides positional access by index?YESNO
Can store duplicate elements?YESNO
Can store multiple null elements?YESNO
Childs:ArrayList, LinkedList, Vector, and StackHashSet and LinkedHashSet
clear answer
Source Link
Ahmed Nabil
  • 19.2k
  • 12
  • 70
  • 101

List :

  1. List is orderedordered grouping elements
  2. List provides positional accessprovides positional access in the elements of the collections.
  3. We can store duplicate elementscan store duplicate elements in the list.
  4. List implements ArrayListinterface is implemented by ArrayList, LinkedListLinkedList, VectorVector, and StackStack.
  5. List can store multiple null elementsstore multiple null elements.

Set :

  1. UnorderdSet is unordered grouping elements.
  2. Set doesn’t provides positional accessdoesn’t provide positional access in the elements of the collections.
  3. We can’t store duplicate elementscan’t store duplicate elements in the set.
  4. Set implement HashSetinterface is implemented by HashSet and LinkedHashSet interfacesLinkedHashSet.
  5. Set can store only one null elementsstore only one null element.

List :

  1. List is ordered grouping elements
  2. List provides positional access in the elements of the collections.
  3. We can store duplicate elements in the list.
  4. List implements ArrayList, LinkedList, Vector and Stack.
  5. List can store multiple null elements.

Set :

  1. Unorderd grouping elements.
  2. Set doesn’t provides positional access in the elements of the collections.
  3. We can’t store duplicate elements in the set.
  4. Set implement HashSet and LinkedHashSet interfaces.
  5. Set can store only one null elements.

List :

  1. List is ordered grouping elements
  2. List provides positional access in the elements of the collections.
  3. We can store duplicate elements in the list.
  4. List interface is implemented by ArrayList, LinkedList, Vector, and Stack.
  5. List can store multiple null elements.

Set :

  1. Set is unordered grouping elements.
  2. Set doesn’t provide positional access in the elements of the collections.
  3. We can’t store duplicate elements in the set.
  4. Set interface is implemented by HashSet and LinkedHashSet.
  5. Set can store only one null element.
added 3 characters in body
Source Link
zpontikas
  • 5.7k
  • 2
  • 40
  • 41

List :

  1. List is ordered grouping elements
  2. List provides positional access in the elements of the collections.
  3. We can store duplicate elements intin the list.
  4. List implements ArrayList, LinkedList, Vector and Stack.
  5. List can store multiple null elements.

Set :

  1. Unorderd grouping elements.
  2. Set doesn’t provides positional access in the elements of the collections.
  3. We can’t store duplicate elements in the set.
  4. Set implement HashSet and LinkedHashSet interfaces.
  5. Set can store only one null elements.

List :

  1. List is ordered grouping elements
  2. List provides positional access in the elements of the collections.
  3. We can store duplicate elements int list.
  4. List implements ArrayList, LinkedList, Vector and Stack.
  5. List can store multiple null elements.

Set :

  1. Unorderd grouping elements.
  2. Set doesn’t provides positional access in the elements of the collections.
  3. We can’t store duplicate elements in the set.
  4. Set implement HashSet and LinkedHashSet interfaces.
  5. Set can store only one null elements.

List :

  1. List is ordered grouping elements
  2. List provides positional access in the elements of the collections.
  3. We can store duplicate elements in the list.
  4. List implements ArrayList, LinkedList, Vector and Stack.
  5. List can store multiple null elements.

Set :

  1. Unorderd grouping elements.
  2. Set doesn’t provides positional access in the elements of the collections.
  3. We can’t store duplicate elements in the set.
  4. Set implement HashSet and LinkedHashSet interfaces.
  5. Set can store only one null elements.
Source Link
Loading