Core Java Course — Full Outline and Reading Order
The complete table of contents for the Core Java course: 116 articles across twelve parts, from "what is Java" through modules, with the current reading order and short notes on what each article covers. Start here, or jump to any part.
kvi5hnuCode Sprout team member10 min readOn this page
This is the table of contents for the Core Java course — the language, its runtime, and the parts of the standard library every working Java developer uses. The course targets Java 21 as its baseline and calls out what changed through Java 22–27 (Java 25 is the current LTS and Java 27 is the current release as of November 2026).
Who this course is for
- Newcomers to Java who already know some programming (any language — Python, JavaScript, C, C++) and want a thorough, from-scratch tour that doesn't talk down to them.
- Working developers moving from another JVM language (Kotlin, Scala, Groovy) or an older Java (6, 8, 11, 17) who want a concise way to catch up to Java 25+.
- Students preparing for interviews, exams or a first job: every chapter ends with practice questions and the collection ships with runnable code and diagrams.
If you have never programmed before, start with a language-agnostic intro to variables, loops and functions first, then come back here.
What you will learn
By the end of the course you will be able to:
- Install a modern JDK and compile, run and debug Java programs from the command line, an IDE and JShell.
- Write idiomatic Java 25: records, sealed classes, pattern matching, switch expressions, text blocks,
var, enhancedinstanceof. - Design programs with classes, inheritance, interfaces, lambdas, inner classes and reflection, following modern style.
- Use the Collections Framework confidently — list / set / queue / map, the right structure for the right job.
- Write safe concurrent code with threads, virtual threads,
ExecutorService,CompletableFuture, locks and the concurrent collections. - Package code with modules and
jlink, and understand how the module system interacts with the classpath. - Read, write and process generics, annotations and bytecode — the machinery that frameworks such as Spring are built on.
How the course is organised
The course is twelve parts following the twelve chapters of Core Java (Volume I). Every article is short enough to read in one sitting (10–20 minutes), has at least one runnable example, and ends with a few "check yourself" questions.
| # | Part | What it covers |
|---|---|---|
| 1 | Meet Java | What Java is, its history, and the myths that follow it around |
| 2 | Setting Up | Installing a JDK, the command line, IDEs and JShell |
| 3 | Fundamental Programming Structures | Types, operators, strings, control flow, arrays |
| 4 | Objects and Classes | Classes, constructors, encapsulation, records, packages |
| 5 | Inheritance | Subclassing, polymorphism, the Object class, reflection |
| 6 | Interfaces, Lambdas, Inner Classes | Interfaces, functional programming, nested classes, proxies |
| 7 | Exceptions, Assertions, Logging | Error handling, assertions, System.Logger, debugging |
| 8 | Generic Programming | Generics, bounds, wildcards, erasure, generics + reflection |
| 9 | Collections | The framework, lists, sets, maps, queues, legacy collections |
| 10 | Concurrency | Threads, virtual threads, executors, locks, atomics |
| 11 | Annotations | Built-in and custom annotations, runtime and compile-time processing |
| 12 | The Module System | Modular JARs, services, migration |
Part 1 — Meet Java
- What Is Java? The Language, the Platform, and the JVM Explained — language + library + JVM, JDK/JRE/JVM, editions.
- Java's Design Goals: The 11 White Paper Buzzwords Explained — the original buzzwords and today's reality.
- History of Java: From Oak to Java 27, Applets to LTS Releases — Oak → Java 27, applets, six-month cadence, LTS.
- Common Myths and Misconceptions About Java — "Java is slow", "nobody uses Java" and other false claims, corrected.
Part 2 — Setting Up
- Install Java on Windows, macOS and Linux: Pick a JDK — vendors, versions, PATH, JAVA_HOME, src.zip, docs.
- Compile and Run Java from the Command Line —
javac,java, source-file mode, common errors. - Choosing a Java IDE: IntelliJ IDEA, VS Code, Eclipse — using an IDE, finding compile errors, debugger basics.
- JShell, the Java REPL: Try Java One Line at a Time — JShell for exploration.
Part 3 — Fundamental Programming Structures
- Java Hello World: Program Structure and
main— anatomy of a program,main, compact source files, comments. - Java Primitive Types: Integers and Floating Point —
int/long/short/byte,float/double,NaN, overflow. - Java
char, Unicode andboolean—char, code units, Unicode,boolean. - Variables, Constants and
varin Java — declaration, initialisation,var,final, constants, enums intro. - Java Arithmetic Operators and the
MathClass — arithmetic,Math, integer division,%,floorMod. - Type Conversion and Casting in Java — widening, narrowing, casts, compound assignment.
- Java Increment, Relational, Logical and Bitwise Operators —
++, comparisons,&&/||,?:, bitwise, precedence. - Switch Expressions in Modern Java — arrow form and
yield. - Java Strings:
substring, Concatenation, Equality — basics, immutability,equalsvs==. - The Java String API: Code Points and Text Blocks — API tour, code points, building strings, text blocks.
- Console I/O in Java: Scanner, Console,
printf—Scanner,Console, formatted output. - Reading and Writing Text Files in Java: The Basics — reading/writing text files.
- Blocks, Scope and
if/elsein Java — blocks, scope, conditional statements. - Loops in Java:
while,do-while,for— loops. - The Java
switchStatement — statement form, fall-through, all variants. break,continueand Labels in Java — control-flow interruption.- Big Numbers in Java:
BigIntegerandBigDecimal— arbitrary-precision arithmetic. - Java Arrays: Basics, For-Each and Copying — arrays, for-each, copying, command-line args.
- Sorting, Multi-dimensional and Ragged Arrays in Java —
ArraysAPI, sorting, 2-D and ragged arrays.
Part 4 — Objects and Classes
- Introduction to Object-Oriented Programming in Java — classes, objects, OOP vocabulary.
- Using Predefined Classes:
LocalDateand Friends — creating objects, calling methods. - Defining Your Own Classes: Constructors and Fields — class layout, constructors, fields, methods.
- Encapsulation and Access in Java:
privateandfinal— information hiding, immutable fields. - Static Fields and Methods in Java — class-level state and behaviour.
- Method Parameters in Java: Pass-by-Value, Always — why Java is pass-by-value, including for objects.
- Constructor Overloading and Object Initialisation in Java — overloads,
this(), instance initialisers. - Java Records: Transparent Data Carriers — records, canonical and compact constructors.
- Java Packages, Imports and
import static— organising code, importing names. - Classpath and Package Access in Java — classpath, package-private, access rules.
- Working with JAR Files in Java — creating, listing and running JARs.
- Javadoc: Documentation Comments in Java — writing Javadoc, generating HTML.
- Class Design Hints: Writing Classes People Can Use — practical style advice.
Part 5 — Inheritance
- Inheritance in Java: Superclass, Subclass, Overriding —
extends, overriding,super, constructor chaining. - Polymorphism and Dynamic Binding in Java — how method calls find their target.
finalClasses, Casting andprotectedin Java — sealing classes, casting objects,protectedmembers.- The
ObjectClass andequalsin Java — every class's parent, writingequalscorrectly. hashCodeandtoStringin Java — the hash contract, readable string forms.ArrayListand Generic Lists in Java —ArrayList<E>, basic operations.- Wrapper Classes and Autoboxing in Java —
Integer,Double, boxing, unboxing, caches. - Varargs: Variable-Length Argument Lists in Java —
String..., pitfalls. - Abstract Classes in Java — partial implementations, when to use.
- Java
enumClasses — enums with fields and methods. - Sealed Classes in Java — closed hierarchies,
permits. - Pattern Matching for
instanceof,switchand Records — patterns everywhere. - Reflection:
Class,Objectand Resources — getting class objects, loading resources. - Reflection: Analysing Classes and Objects — fields, methods, constructors.
- Reflection: Invoking Methods and Generic Arrays — dynamic invocation, generic arrays.
- Inheritance Design Hints — when to extend, when to compose.
Part 6 — Interfaces, Lambdas, Inner Classes
- Java Interfaces: The Basics — contract types, implementing an interface.
- Default, Static and Private Methods in Interfaces — interfaces with behaviour.
Comparator, Callbacks and Object Cloning — comparators, callbacks,Cloneable.- Lambda Expressions and Functional Interfaces in Java — lambdas,
java.util.function. - Method and Constructor References in Java —
::references. - Lambda Variable Scope and Comparators — capture rules, comparator composition.
- Inner Classes in Java — non-static nested classes, outer-class access.
- Local, Anonymous and Static Nested Classes — the rest of the nested-class family.
ServiceLoader: Pluggable Services in Java — service discovery viaMETA-INF/services.- Dynamic Proxies in Java —
Proxy,InvocationHandler.
Part 7 — Exceptions, Assertions, Logging
- The Java Exception Hierarchy: Checked vs Unchecked —
Throwable,Error,Exception,RuntimeException. - Throwing and Writing Custom Exceptions in Java —
throw, designing exception types. try,catch, Multi-catch and Chaining in Java — handling errors, chaining causes.finally, Try-with-Resources and Stack Traces — cleanup, suppressed exceptions, reading traces.- Exception Handling Best Practices in Java — what to catch, where to catch, what to log.
- Assertions in Java —
assert, enabling assertions, when to use. - Logging in Java:
System.Loggerandjava.util.logging— the modern logger API and JUL. - Logging Handlers, Formatters and Configuration — routing and shaping log output.
- Debugging Tips for Java — IDE debugger, remote debugging, common pitfalls.
Part 8 — Generic Programming
- Generics in Java: Generic Classes and Methods — type parameters, generic methods.
- Bounded Type Parameters in Java —
T extends Number, intersection bounds. - Type Erasure and Bridge Methods in Java — how generics compile.
- Generics, Inheritance and Wildcards in Java —
? extends,? super, PECS. - Generics: Restrictions and Limitations — what generics cannot do.
- Reflection and Generics in Java — reading generic type information at runtime.
Part 9 — Collections
- The Java Collections Framework and Iterators — framework overview, iteration.
- Collection Interfaces:
List,Set,Queue,Map— the core shapes. LinkedListvsArrayList: Picking the Right List — trade-offs, benchmarks.HashSetandTreeSetin Java — hashing vs ordering.Queue,DequeandPriorityQueuein Java — queues as a general tool.HashMap,TreeMapand theMapInterface — the workhorse.- Map Views,
LinkedHashMap,EnumMap,WeakHashMap— specialised maps. - Immutable Collections, Views and Sub-lists —
List.of, unmodifiable views,subList. - Collection Algorithms:
sort,binarySearch,shuffle— the static helpers. - Legacy Collections:
Hashtable,Properties,BitSet— pre-framework classes you still meet.
Part 10 — Concurrency
- Creating and Running Threads in Java —
Thread,Runnable, starting threads. - Thread States and Lifecycle in Java — NEW → TERMINATED.
- Virtual Threads, Interrupts and Daemon Threads — Java 21+ virtual threads.
Callable,FutureandExecutorService— submitting work.invokeAlland the Fork/Join Framework — parallel task execution.- Race Conditions and
ReentrantLock— safely sharing state. ConditionObjects andsynchronized— cooperation between threads.volatile, Atomics, Deadlocks andThreadLocal— low-level concurrency tools.- Blocking Queues and Thread-Safe Collections — producer/consumer, concurrent lists.
ConcurrentHashMap,CopyOnWriteand Parallel Arrays — concurrent collection details.CompletableFuturein Java — composing async work.- Long-Running Tasks and UI Callbacks — background work and progress reporting.
- Processes and
ProcessBuilderin Java — running external commands.
Part 11 — Annotations
- Annotations Basics in Java — what annotations are, where they go.
- Defining Custom Annotations in Java — writing your own.
- Standard Annotations in the Java API —
@Override,@Deprecatedand friends. - Processing Annotations at Runtime in Java — reflection + annotations.
- Compile-time Annotation Processors in Java — pluggable code generators.
- Bytecode Engineering in Java — reading and rewriting
.classfiles.
Part 12 — The Module System
- Java Modules: Introduction and Hello World — what modules are, a first modular program.
- Modules:
requiresandexports— the core module directives. - Modular JARs, Reflective Access and
opens— shipping modules, allowing reflection. - Automatic and Unnamed Modules, and Migration — moving from classpath to modules.
- Transitive Modules,
static requires, Services and Tools — advanced directives,jlink,jdeps.
Appendix
- Java Keywords Reference — every reserved word with a one-line meaning.
Start here: What Is Java? The Language, the Platform, and the JVM Explained
Related reading

More in Core Java I
Java volatile, Atomics, Deadlocks and ThreadLocal: Safe Sharing Between Threads
Share data between Java threads without bugs: memory visibility and volatile, final fields, AtomicInteger and compareAndSet, LongAdder, lazy holder initialization, safe publication, lock-ordering deadlocks, ThreadLocal, InheritableThreadLocal and ScopedValue.
Java Condition Objects and the synchronized Keyword: await, signalAll, wait and notify
Make threads wait for a condition safely with Condition.await and signalAll, then learn Java's built-in alternative: synchronized methods and blocks, intrinsic locks, wait and notifyAll, choosing lock objects, client-side locking, and the monitor concept.
Java Race Conditions and ReentrantLock: Synchronizing Shared Data
Why unsynchronized threads corrupt shared data, shown step by step with a lost-update race, and how to fix it with ReentrantLock: the lock/try/finally idiom, critical sections, reentrancy and hold counts, tryLock, fair locks, and the mistakes that cause bugs.
Java invokeAll, invokeAny and Fork-Join: Running Groups of Tasks
Coordinate many concurrent tasks in Java: invokeAll to wait for every result, invokeAny to take the first success, timeouts, ExecutorCompletionService for results in completion order, structured concurrency, and the fork-join framework with RecursiveTask, RecursiveAction and work stealing.
Discussion
Sign in to ask a question or share what you learned.