Chapter 1: Setup and Java 26
Setup and Java 26 Fundamentals, Setup and Java 26 Syntax and Structure, Setup and Java 26 Practical Example, Setup and Java 26 Common Mistakes, Setup and Java 26 Best Practices
Open chapterChapter 2: First Java Program
First Java Program Fundamentals, First Java Program Syntax and Structure, First Java Program Practical Example, First Java Program Common Mistakes, First Java Program Best Practices
Open chapterChapter 3: Variables and Constants
Declaring Variables, Initialization, Scope, Constants/Final Values, Naming
Open chapterChapter 4: Primitive Types
Built-in Types, Conversion, Inference, Custom Types, Type Safety
Open chapterChapter 5: Operators and Expressions
Arithmetic Operators, Comparison Operators, Logical Operators, Assignment Operators, Precedence
Open chapterChapter 6: Strings and Text Blocks
Creating Strings, Searching and Comparing, Transforming Strings, Formatting/Interpolation, String Performance and Safety
Open chapterChapter 7: Console Input and Output
Console Input and Output Fundamentals, Console Input and Output Syntax and Structure, Console Input and Output Practical Example, Console Input and Output Common Mistakes, Console Input and Output Best Practices
Open chapterChapter 8: Conditions and switch Expressions
if, else if, switch/match, Conditional Expressions, Decision Best Practices
Open chapterChapter 9: Loops
for Loop, while Loop, do/foreach Variants, break/continue, Loop Best Practices
Open chapterChapter 10: Methods
Declaring Methods, Parameters, Return Values, Overloading/Overrides, Method Design
Open chapterChapter 11: Parameters, Return Values, and Varargs
Parameters, Return Values, and Varargs Fundamentals, Parameters, Return Values, and Varargs Syntax and Structure, Parameters, Return Values, and Varargs Practical Example, Parameters, Return Values, and Varargs Common Mistakes, Parameters, Return Values, and Varargs Best Practices
Open chapterChapter 12: Arrays
Creating Arrays, Indexing and Updating, Looping Through Arrays, Multidimensional/Nested Arrays, Array Safety and Performance
Open chapterChapter 13: Multidimensional Arrays
Creating Arrays, Indexing and Updating, Looping Through Arrays, Multidimensional/Nested Arrays, Array Safety and Performance
Open chapterChapter 14: Classes and Objects
Declaring Classes, Fields and State, Methods, Constructors, Encapsulation
Open chapterChapter 15: Constructors
Constructors Fundamentals, Constructors Syntax and Structure, Constructors Practical Example, Constructors Common Mistakes, Constructors Best Practices
Open chapterChapter 16: Access Modifiers and Encapsulation
Access Modifiers and Encapsulation Fundamentals, Access Modifiers and Encapsulation Syntax and Structure, Access Modifiers and Encapsulation Practical Example, Access Modifiers and Encapsulation Common Mistakes, Access Modifiers and Encapsulation Best Practices
Open chapterChapter 17: Inheritance
Base and Derived Types, Overriding, Polymorphism, Protected Members, Composition vs Inheritance
Open chapterChapter 18: Polymorphism
Polymorphism Fundamentals, Polymorphism Syntax and Structure, Polymorphism Practical Example, Polymorphism Common Mistakes, Polymorphism Best Practices
Open chapterChapter 19: Abstract Classes and Interfaces
Declaring Classes, Fields and State, Methods, Constructors, Encapsulation
Open chapterChapter 20: Records
Records Fundamentals, Records Syntax and Structure, Records Practical Example, Records Common Mistakes, Records Best Practices
Open chapterChapter 21: Enums
Enums Fundamentals, Enums Syntax and Structure, Enums Practical Example, Enums Common Mistakes, Enums Best Practices
Open chapterChapter 22: Sealed Classes
Declaring Classes, Fields and State, Methods, Constructors, Encapsulation
Open chapterChapter 23: Pattern Matching
Pattern Matching Fundamentals, Pattern Matching Syntax and Structure, Pattern Matching Practical Example, Pattern Matching Common Mistakes, Pattern Matching Best Practices
Open chapterChapter 24: Generics
Generic Types, Generic Methods, Bounds/Constraints, Generic Collections, Generic Design
Open chapterChapter 25: Generic Bounds and Wildcards
Generic Types, Generic Methods, Bounds/Constraints, Generic Collections, Generic Design
Open chapterChapter 26: Collections Framework
Creating Collections, Adding and Removing, Searching and Iterating, Sorting/Transforming, Choosing the Right Collection
Open chapterChapter 27: List, Set, Map, Queue, and Deque
List, Set, Map, Queue, and Deque Fundamentals, List, Set, Map, Queue, and Deque Syntax and Structure, List, Set, Map, Queue, and Deque Practical Example, List, Set, Map, Queue, and Deque Common Mistakes, List, Set, Map, Queue, and Deque Best Practices
Open chapterChapter 28: Comparators and Sorting
Comparators and Sorting Fundamentals, Comparators and Sorting Syntax and Structure, Comparators and Sorting Practical Example, Comparators and Sorting Common Mistakes, Comparators and Sorting Best Practices
Open chapterChapter 29: Lambdas
Lambda Syntax, Parameters, Captured Values, Functional Interfaces/Callbacks, Lambda Best Practices
Open chapterChapter 30: Method References and Functional Interfaces
Declaring Interfaces, Implementing Interfaces, Multiple Contracts, Default/Static Members, Interface Design
Open chapterChapter 31: Streams
Stream Concepts, Creating Pipelines, Filtering/Mapping, Collecting/Aggregating, Performance and Side Effects
Open chapterChapter 32: Collectors and Advanced Streams
Stream Concepts, Creating Pipelines, Filtering/Mapping, Collecting/Aggregating, Performance and Side Effects
Open chapterChapter 33: Optional
Optional Fundamentals, Optional Syntax and Structure, Optional Practical Example, Optional Common Mistakes, Optional Best Practices
Open chapterChapter 34: Exceptions
Throwing Errors, Catching Errors, Finally/Cleanup, Custom Errors, Error-Handling Best Practices
Open chapterChapter 35: Files and NIO.2
Opening Files, Reading Data, Writing Data, Paths/Metadata, Resource and Error Handling
Open chapterChapter 36: Serialization Concepts and Data Formats
Serialization Concepts and Data Formats Fundamentals, Serialization Concepts and Data Formats Syntax and Structure, Serialization Concepts and Data Formats Practical Example, Serialization Concepts and Data Formats Common Mistakes, Serialization Concepts and Data Formats Best Practices
Open chapterChapter 37: Date and Time API
Date and Time API Fundamentals, Date and Time API Syntax and Structure, Date and Time API Practical Example, Date and Time API Common Mistakes, Date and Time API Best Practices
Open chapterChapter 38: Regular Expressions
Regular Expressions Fundamentals, Regular Expressions Syntax and Structure, Regular Expressions Practical Example, Regular Expressions Common Mistakes, Regular Expressions Best Practices
Open chapterChapter 39: BigInteger and BigDecimal
BigInteger and BigDecimal Fundamentals, BigInteger and BigDecimal Syntax and Structure, BigInteger and BigDecimal Practical Example, BigInteger and BigDecimal Common Mistakes, BigInteger and BigDecimal Best Practices
Open chapterChapter 40: Internationalization and Localization
Internationalization and Localization Fundamentals, Internationalization and Localization Syntax and Structure, Internationalization and Localization Practical Example, Internationalization and Localization Common Mistakes, Internationalization and Localization Best Practices
Open chapterChapter 41: Modules
Module Basics, Declaring Modules, Dependencies, Exports/Opens, Module Design
Open chapterChapter 42: Annotations
Annotations Fundamentals, Annotations Syntax and Structure, Annotations Practical Example, Annotations Common Mistakes, Annotations Best Practices
Open chapterChapter 43: Reflection
Reflection Fundamentals, Reflection Syntax and Structure, Reflection Practical Example, Reflection Common Mistakes, Reflection Best Practices
Open chapterChapter 44: Threads
Creating Threads, Shared State, Synchronization, Thread Safety, Threading Best Practices
Open chapterChapter 45: Executors and Thread Pools
Creating Threads, Shared State, Synchronization, Thread Safety, Threading Best Practices
Open chapterChapter 46: Locks, Atomics, and Synchronization
Locks, Atomics, and Synchronization Fundamentals, Locks, Atomics, and Synchronization Syntax and Structure, Locks, Atomics, and Synchronization Practical Example, Locks, Atomics, and Synchronization Common Mistakes, Locks, Atomics, and Synchronization Best Practices
Open chapterChapter 47: CompletableFuture
CompletableFuture Fundamentals, CompletableFuture Syntax and Structure, CompletableFuture Practical Example, CompletableFuture Common Mistakes, CompletableFuture Best Practices
Open chapterChapter 48: Virtual Threads
Creating Threads, Shared State, Synchronization, Thread Safety, Threading Best Practices
Open chapterChapter 49: Structured Concurrency and Scoped Values Concepts
Concurrency Model, Tasks/Executors, Shared State, Synchronization, Performance and Safety
Open chapterChapter 50: HTTP Client
HTTP Fundamentals, Requests, Responses, Serialization, Errors and Resilience
Open chapterChapter 51: Socket Networking
Socket Networking Fundamentals, Socket Networking Syntax and Structure, Socket Networking Practical Example, Socket Networking Common Mistakes, Socket Networking Best Practices
Open chapterChapter 52: JDBC
JDBC Fundamentals, JDBC Syntax and Structure, JDBC Practical Example, JDBC Common Mistakes, JDBC Best Practices
Open chapterChapter 53: SQL Transactions and Connection Pools
ACID Concepts, BEGIN/COMMIT, Rollback, Isolation, Deadlocks and Retry
Open chapterChapter 54: Testing with JUnit Concepts
Unit Test Basics, Arrange-Act-Assert, Edge Cases, Test Doubles Concepts, Automation and Coverage
Open chapterChapter 55: Logging and Configuration
Logging and Configuration Fundamentals, Logging and Configuration Syntax and Structure, Logging and Configuration Practical Example, Logging and Configuration Common Mistakes, Logging and Configuration Best Practices
Open chapterChapter 56: Maven and Gradle
Maven and Gradle Fundamentals, Maven and Gradle Syntax and Structure, Maven and Gradle Practical Example, Maven and Gradle Common Mistakes, Maven and Gradle Best Practices
Open chapterChapter 57: REST and Web Application Concepts
REST and Web Application Concepts Fundamentals, REST and Web Application Concepts Syntax and Structure, REST and Web Application Concepts Practical Example, REST and Web Application Concepts Common Mistakes, REST and Web Application Concepts Best Practices
Open chapterChapter 58: JVM Memory, Garbage Collection, and Performance
Creating Collections, Adding and Removing, Searching and Iterating, Sorting/Transforming, Choosing the Right Collection
Open chapterChapter 59: Java 26 Modern Features and Platform Evolution
Java 26 Modern Features and Platform Evolution Fundamentals, Java 26 Modern Features and Platform Evolution Syntax and Structure, Java 26 Modern Features and Platform Evolution Practical Example, Java 26 Modern Features and Platform Evolution Common Mistakes, Java 26 Modern Features and Platform Evolution Best Practices
Open chapterChapter 60: Architecture, Security, Deployment, and Capstone
Threat Model, Input Validation, Authentication/Authorization, Secret Handling, Secure Defaults
Open chapter