Interactive course
Course Java
Learn modern Java (JDK 17/21) from scratch with progressive explanations, interactive JVM and Stream labs, AST-tested exercises, and targeted quizzes: from primitive and advanced OOP up to Generics, Stream API, Record, Optional, Concurrency, and JUnit 5.
01 · Basics of Java and JVM
Program structure Java, primitive types, modern flow control, String Pool and static arrays.
- 1.1Variables, primitive types and structureMain class, main method, primitive types (int, double, boolean, char), final, var, and integer division traps.~12 min
- 1.2Flow Control and SwitchBoolean if/else conditionals, for/enhanced for-each/while loops, break/continue, and switch expression Java 14+.~14 min
- 1.3Strings, String Pool and ArraysImmutability of String, String Intern Pool vs Heap (`==` vs `.equals()`), `StringBuilder` and arrays with `Arrays`.~15 min
02 · Fundamentals of OOP
Classes, objects on Heap, pass-by-value of references, constructors, rich overloading and enum.
- 2.1Classes, Objects and JVM HeapStack/Heap template for `new` objects, encapsulation with `private`, constructors and reference `this`.~15 min
- 2.2Methods, Pass-by-Value and OverloadingHow Java passes references by value, cohesive method design, constructor delegation `this(...)` and overloading.~15 min
- 2.3Members static, final and EnumDifference between class state (`static`) and instance, constants `static final`, and `enum` typed with fields and methods.~14 min
03 · OOP Advanced
Class hierarchies with extends, super(), dynamic dispatch, and abstractions with abstract classes.
04 · Interfaces and Dynamic Collections
Decoupled behavioral contracts via interface and safe manipulation of ArrayList.
- 4.1Interfaces and ContractsDefine clean `interface`, multiple `implements A, B` implementations, default methods, and composition vs inheritance.~15 min
- 4.2Collections and ArrayListDynamic lists with `ArrayList<E>`, wrapper classes vs primitives, `List.of()` and traps of `.remove()` in iteration.~15 min
05 · Exception Management
Throwable hierarchy, checked vs unchecked, try-catch-finally and AutoCloseable with try-with-resources.
- 5.1Try-catch blocks and exceptionsChecked vs unchecked exceptions, block order `catch`, multi-catch (`A | B`), custom exceptions and relaunch with cause.~14 min
- 5.2Try-with-resources and AutoCloseableGuaranteed automatic closure in LIFO order, `AutoCloseable`, suppressed exceptions and prevention of resource leaks.~14 min
06 · Collections Framework and Generics
HashSet, HashMap idiomatic, access complexity and generic type-safe programming with bounded wildcards.
- 6.1Set, Map and Key-Value IdiomsUniqueness with `HashSet`/`LinkedHashSet`, dictionaries with `HashMap`, `.getOrDefault`, `.computeIfAbsent` and `.merge`.~16 min
- 6.2Generic Types and WildcardClasses and methods `<T>`, constraints `<T extends Comparable<T>>`, wildcards PECS (`? extends` / `? super`) and Type Erasure.~16 min
07 · Lambda and Stream API
Functional programming on JVM: functional interfaces, method reference, lazy evaluation and Collectors.
- 7.1Lambda Expressions and Functional InterfacesPredicate, Function, Consumer, Supplier, method reference (`Class::method`) and constraint effectively final.~15 min
- 7.2Stream API: Lazy Pipeline and CollectorsVertical lazy evaluation, `filter`/`map`/`flatMap`, short-circuiting (`findFirst`), `reduce` and `Collectors.groupingBy`.~18 min
08 · Java Modern: Record, Sealed and Optional
Java 17/21 constructs for immutable and expressive domains: Records, Sealed hierarchies, Optional and pattern matching.
- 8.1Records, Sealed Classes and Pattern MatchingImmutable data carriers with `record`, compact constructor, closed hierarchies `sealed ... permits` and `instanceof` patterns.~16 min
- 8.2Optional and Secure Null ManagementEliminate `NullPointerException` with `Optional.ofNullable`, `.map`/`.flatMap`, `.orElseGet` vs `.orElse` and Collectors.~15 min
09 · Concurrency and File I/O (NIO.2)
Safe parallel execution with ExecutorService and CompletableFuture, thread-safe structures, and modern API files java.nio.file.
- 9.1ExecutorService and CompletableFutureSeparate tasks from threads with pools `ExecutorService`, asynchronous pipelines `CompletableFuture`, `ConcurrentHashMap`, and `AtomicInteger`.~17 min
- 9.2Modern File I/O with NIO.2Portable paths with `Path.of`, fast read/write with `Files.readString`/`writeString`, and lazy streaming `Files.lines`.~14 min
10 · Testing JUnit 5 and Contracts OOP
Expressive unit tests with JUnit 5 and invariants of equality, hashing and defensive immutability.
- 10.1Unit Tests with JUnit 5Anatomy Arrange-Act-Assert, annotations `@Test` and `@BeforeEach`, `assertEquals`, `assertThrows` and `assertAll`.~15 min
- 10.2Contract equals/hashCode and ImmutabilityCorrectly implement `equals` + `hashCode` for `HashSet`/`HashMap`, defensive copies `List.copyOf`, and immutable objects.~16 min
Tools & related tracks for Course Java
Explore structured learning tracks on eLearner.app, or jump straight into the live playground and printable cheatsheet for this course.
Recommended next courses
Course Java FAQ
How many lessons and hands-on exercises are in Course Java?
Course Java covers 10 modules, 22 interactive lessons, and 110 practical exercises (~6 hours total) with instant automated validation.
Do I need local setup or IDE installation for Course Java?
No installation required: every exercise and the interactive Course Java playground execute right in your browser via WASM and isolated sandboxes, with instant feedback.
Is Module 1 of Course Java free without creating an account?
Yes. Module 1 (“Module 1 — Basics of Java and JVM”), the live playground, and the printable cheatsheet are permanently free without signup, saving your progress locally in your browser.
Which companion courses pair best with Course Java?
Course Java pairs smoothly with SQL, Linux, and Git courses on eLearner.app to round out database querying, CLI workflows, and version control.