Skip to main content

7 docs tagged with "java-21"

View all tags

Chapter 13 — Concurrency

Full coverage of Java concurrency: platform threads, virtual threads (Java 21), Runnable vs Callable, ExecutorService, Future, atomic classes, synchronized, ReentrantLock, volatile, concurrent collections, deadlock, and parallel streams — with real-world thread-safety traps.

Chapter 3 — Making Decisions

Complete guide to Java control flow: if/else, switch statements and expressions, while/do-while/for loops, break/continue with labels, and pattern matching — including Java 21 switch with when guards.

Chapter 4 — Core APIs

Master Java's core APIs: String, StringBuilder, arrays, Arrays utility class, Math API, BigInteger/BigDecimal, and the modern Date-Time API including daylight saving time shifts.

Chapter 7 — Beyond Classes

Covers interfaces (default, static, private methods), functional interfaces, enums with fields/constructors, records, sealed classes, and nested classes — all featuring heavily in the OCP Java 21 exam with Java 21-specific additions like pattern matching and exhaustive switch.

Exam Tips & Quick Reference

Comprehensive OCP Java SE 21 (1Z0-830) exam cheat-sheet: output tracing strategy, compile vs runtime errors, Java 21 new features, mnemonics, top traps across all 14 chapters, functional interface cheatsheet, stream operations, collections comparison, and a final checklist.

Welcome to OCP Java SE 21 Study Guide

A structured Docusaurus study guide covering all 14 chapters of the OCP Oracle Certified Professional Java SE 21 Developer exam (1Z0-830), with beginner explanations, senior deep-dives, exam tips, and Spring framework context.