Java Programming
13 guides · about 2 hours of reading
Java runs a large share of the world's business software, and the language has evolved a great deal since the days of anonymous inner classes and raw types. This subject builds a solid, modern foundation: how the object model really works, how to use the collections framework and generics without surprises, what lambdas and streams change about the way you write code, and how to structure programs with well-known design patterns. Examples target current long-term-support releases.
Who this is for
- Developers new to Java
- Programmers coming from another language
- Java developers refreshing modern features
Learning path
Read in order for a complete course, or pick the topic you need.
- 1Java Object-Oriented Basics: Classes, Objects, Fields and MethodsHow Java classes, objects, constructors, fields, methods, encapsulation, static members and records work, with the mental model behind references and the heap.Beginner9 min read
- 2Inheritance, Polymorphism and Interfaces in JavaExtending classes, overriding, abstract classes, interfaces with default methods, sealed hierarchies, pattern matching, and when composition beats inheritance.Beginner7 min read
- 3The Java Collections Framework: Lists, Sets, Maps and QueuesChoose between ArrayList, LinkedList, HashSet, TreeSet, HashMap, TreeMap and ArrayDeque, understand what each costs, and avoid the iteration and ordering traps.Beginner8 min read
- 4Java Generics: Type Parameters, Bounds, Wildcards and ErasureGeneric classes and methods, bounded type parameters, the PECS rule for wildcards, what type erasure means in practice, and how to keep generic code type-safe.Intermediate7 min read
- 5Java Exceptions: Checked vs Unchecked, try-with-resources and Good Error DesignChecked vs unchecked exceptions, propagation, try-with-resources, chaining, custom exception design and the handling patterns that keep errors honest.Beginner8 min read
- 6Lambdas, Method References and Functional Interfaces in JavaHow Java lambdas are typed, the java.util.function interfaces, method references, effectively final capture, composition and how lambdas are compiled.Intermediate8 min read
- 7The Java Streams API: Pipelines, Collectors and PitfallsHow Java streams work, when to use them instead of loops, the operations you need, collectors, parallel streams and the mistakes that bite in production.Intermediate7 min read
- 8Optional and the java.time API: Handling Absence and Dates CorrectlyUse Optional without abusing it, and model instants, local dates, zones, durations and periods with java.time, including formatting and legacy Date pitfalls.Intermediate7 min read
- 9Java Concurrency: Threads, Synchronization, Executors and Virtual ThreadsThreads, the memory model, synchronized, volatile, locks, atomics, ExecutorService, CompletableFuture, concurrent collections and Java 21 virtual threads.Advanced9 min read
- 10Java I/O and NIO.2: Streams, Readers, Path, Files, Channels and BuffersThe java.io stream model, the NIO.2 Path and Files API, walking and watching directories, channels, buffers, charsets and the resource rules that prevent leaks.Intermediate8 min read
- 11Java Coding Standards: Naming, Structure, Javadoc and Enforceable RulesPractical Java conventions — naming, class layout, formatting, Javadoc, nulls, strings, logging — and how to enforce them with formatters and static analysis.Beginner10 min read
- 12Creational Design Patterns in Java: Singleton, Factory, Builder, PrototypeSingleton, Factory Method, Abstract Factory, Builder and Prototype in modern Java: the problem each solves, and how records, enums and DI change their use.Intermediate8 min read
- 13Structural and Behavioral Design Patterns in JavaAdapter, Decorator, Facade, Proxy, Composite, Strategy, Observer, Command, Template Method, Chain of Responsibility, State and Visitor in modern Java.Intermediate9 min read
Continue with
Spring FrameworkDependency injection, bean configuration, AOP, data access, MVC, REST, security and testing — the Spring Framework explained from the ground up.10 guides →Software Testing & QualityTesting fundamentals, JUnit and Mockito, TDD, BDD with Cucumber, integration and performance testing, automation strategy and static analysis.8 guides →Java EE / Jakarta EEApplication servers, servlets, JSF, EJB, JMS, JPA, JTA, JAX-RS and XML processing — the enterprise Java platform and how its pieces fit together.10 guides →