Foundation

Collections and Generics

Pick the right structure; know what it costs.

The Collections Framework by the decisions it forces — which List, which Map, which Set — with the complexity, the memory and the iteration behaviour of each, and generics deep enough to write and read a bounded wildcard.

9 lessons written2 modules~2h reading

After this course you can

  • Choose the right collection for an access pattern and defend the choice with its complexity
  • Explain how HashMap works, why load factor matters, and what a bad hashCode does to it
  • Read and write generic methods with bounded types and wildcards (PECS)
  • Avoid ConcurrentModificationException, unmodifiable-view surprises and boxing costs

Curriculum

9 lessons · outlined lessons show their plan