________ collection classes store objects, whereas ________ collection classes store primitive data types.

  • ArrayList / LinkedList
  • HashMap / HashSet
  • Vector / Hashtable
  • Wrapper / Primitive
Wrapper collection classes (such as ArrayList) store objects, while Primitive collection classes (such as ArrayList) store primitive data types directly. The wrapper classes allow primitive data types to be used in collections that require objects.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *