J
Java
Learn Java step by step, from your first program to concurrency and the JVM, with the interview angle in every lesson.
Beginner → Advanced14 modules93 lessonsabout 4 hours5 free lessons
Modules
04Object-oriented programming10 lessons
- 4.1Classes and objectsPro3 min
- 4.2Constructors and thisPro3 min
- 4.3Encapsulation and access modifiersPro3 min
- 4.4static membersPro3 min
- 4.5Inheritance and superPro3 min
- 4.6Polymorphism: overloading vs overridingPro3 min
- 4.7Abstract classes vs interfacesPro3 min
- 4.8final, and the equals, hashCode and toString methodsPro3 min
- 4.9Records, enums and sealed classesPro3 min
- 4.10Inner, static nested and anonymous classesPro3 min
07Collections9 lessons
- 7.1The Collections Framework mapPro3 min
- 7.2List: ArrayList vs LinkedListPro3 min
- 7.3Set: HashSet, LinkedHashSet and TreeSetPro2 min
- 7.4Map: HashMap, LinkedHashMap and TreeMapPro3 min
- 7.5How HashMap works insidePro5 min
- 7.6Queue, Deque and PriorityQueuePro2 min
- 7.7Comparable vs ComparatorPro3 min
- 7.8Iterators, fail-fast and fail-safePro3 min
- 7.9Immutable and sequenced collectionsPro2 min
08Functional Java and streams8 lessons
- 8.1LambdasPro3 min
- 8.2Functional interfacesPro2 min
- 8.3Method referencesPro2 min
- 8.4Stream basics: create, filter, map, collectPro2 min
- 8.5Collectors: grouping, partitioning, joiningPro2 min
- 8.6flatMap, reduce and sortingPro2 min
- 8.7Optional, used correctlyPro3 min
- 8.8Parallel streams: when not to use themPro3 min
09Concurrency12 lessons
- 9.1Processes vs threadsPro3 min
- 9.2Creating threads and the thread life cyclePro3 min
- 9.3Race conditions and synchronizedPro3 min
- 9.4volatile and visibilityPro3 min
- 9.5wait and notifyPro3 min
- 9.6Locks: ReentrantLock and ReadWriteLockPro3 min
- 9.7ExecutorService and thread poolsPro3 min
- 9.8Callable, Future and CompletableFuturePro3 min
- 9.9Concurrent collectionsPro3 min
- 9.10Atomic variables and CASPro3 min
- 9.11Deadlock, livelock and starvationPro3 min
- 9.12Virtual threadsPro3 min
12Testing and good code2 lessons
13Java versions: what's new8 lessons
- 13.1How Java releases workPro3 min
- 13.2Java 8: lambdas, streams, Optional and java.timePro3 min
- 13.3Java 9 to 11: modules, var and the HTTP clientPro2 min
- 13.4Java 12 to 17: records, sealed classes and pattern matchingPro2 min
- 13.5Java 18 to 21: virtual threads and pattern matchingPro3 min
- 13.6Java 22 to 25: compact source files, scoped values and morePro4 min
- 13.7Java 26 and 27: the latest releasesPro3 min
- 13.8Interview favourites: which new features to knowPro4 min