Intermediate · Included in Ascent
Model a city library network in object-oriented Java: classes with invariants, inheritance and interfaces, the collections framework in depth, and exceptions that keep a service running. For learners who know the basics of Java.
You've joined the small software team of Lindenhof Libraries, Zurich's network of neighbourhood libraries. Elif, the lead developer, is replacing a tangle of scripts with a proper Java service for loans, members and the catalogue.
Classes and objects, encapsulation and invariants, static members, equals and hashCode.
Subclasses, abstract classes, interfaces and polymorphism.
Comparators, HashSet, TreeMap and removing elements safely while iterating.
Exceptions, checked exceptions of your own, enums with fields, StringBuilder, then the capstone.
Pass every lesson and the capstone, then the 15-question final quiz, to earn your Java Intermediate certificate with a link anyone can verify.
Java collections: choosing between List, Set, Map and Deque
ArrayList vs LinkedList, HashMap vs TreeMap, HashSet vs LinkedHashSet, ArrayDeque for stacks and queues: what each costs and which to reach for first.
Java equals and hashCode: the contract and why HashMap depends on it
What == really compares, how to write equals and hashCode correctly, why breaking the contract makes HashSet lose objects, and the shortcuts that do it for you.
Java exceptions: checked vs unchecked, try-with-resources and error messages
When Java forces you to handle an exception and when it doesn't, how try-with-resources closes files for you, writing your own exceptions, and the mistakes that hide real bugs.
Java interfaces vs abstract classes: when to use which
What interfaces and abstract classes are each for, default methods, composition over inheritance, and how interfaces make Java code easy to test.
Java streams and lambdas: filter, map, collect and groupingBy
Lambdas and method references, the stream pipeline, collecting into lists and maps, groupingBy for reports, Optional, and when a plain loop is clearer.