Question: What is one difference between collections created with Map and collections created with Object?

  1. You can iterate over values in a Map in their insertion order.
  2. You can count the records in a Map with a single method call.
  3. Keys in Maps can be strings.
  4. You can access values in a Map without iterating over the whole collection.

Answer: The correct answer of the above question is Option B:You can count the records in a Map with a single method call.