JAVA

Java — Intermediate

IntermediateJava 21+ · 9 lessons

Write modern, idiomatic Java: design with interfaces and polymorphism, model data with records, enums and sealed types, master the Collections framework and generics, handle exceptions properly, process data with lambdas and streams, and work with files.

Lessons

  1. 1Inheritance, Interfaces & Polymorphismextends, abstract classes, interfaces with default methods, and polymorphism.Solution4-question quiz
  2. 2Records, Enums, Sealed Types & Pattern MatchingConcise data classes, fixed sets of constants, closed type hierarchies and switch patterns.Solution4-question quiz
  3. 3The Collections FrameworkList, Set, Map and Deque — choosing the right one, iterating, sorting with Comparator.Solution4-question quiz
  4. 4equals, hashCode & ComparableObject identity vs equality, the equals/hashCode contract, natural ordering with Comparable and custom orders with Comparator.Solution4-question quiz
  5. 5GenericsType-safe reusable classes and methods, bounded types and wildcards.Solution4-question quiz
  6. 6ExceptionsChecked vs unchecked exceptions, try / catch / finally, try-with-resources and custom exceptions.Solution4-question quiz
  7. 7Lambdas, Optional & StreamsFunctional interfaces, method references, Optional, and filter / map / collect pipelines.Solution4-question quiz
  8. 8Regular Expressions & Text ProcessingPattern and Matcher, matches vs find, named groups, replaceAll, split, StringBuilder and text blocks.Solution4-question quiz
  9. 9Files & I/O with java.nioRead and write files with Path and Files, process CSV lines, and walk directories.Solution4-question quiz
Start with lesson 1 →
Ask AI