Learning paths

Java 8 and collections, practically

Lambdas and the core functional interfaces with real examples, every List, Set, Map and Queue, streams, and the comparisons interviewers love.

  • For: You can write basic Java and want to use lambdas and collections the way professionals do.
  • By the end: You pick the right collection without thinking twice and write clean, modern Java with lambdas and streams.
  • Size: 16 lessons (56 min of reading, plus time to try the code), intermediate
  1. Collections framework: choosing the right oneCollections, intermediate, 6 min
  2. Stream APIJava 8: lambdas and streams, intermediate, 3 min
  3. Collectors: grouping, partitioning and joiningJava 8: lambdas and streams, intermediate, 3 min
  4. Optional: handling absenceJava 8: lambdas and streams, intermediate, 3 min
  5. ArrayList vs LinkedListCollections, intermediate, 3 min
  6. HashSet vs TreeSet (and LinkedHashSet)Collections, intermediate, 3 min
  7. HashMap vs HashtableCollections, intermediate, 3 min
  8. HashMap vs ConcurrentHashMapCollections, advanced, 3 min
  9. HashMap vs LinkedHashMapCollections, intermediate, 3 min
  10. Comparator recipes: sorting by multiple fieldsCollections, intermediate, 3 min
  11. Iterator vs ListIteratorCollections, intermediate, 3 min
  12. Fail-fast vs fail-safe iteratorsCollections, intermediate, 3 min

Other paths