Browse by Topic
Popular
Popular Posts
Latest
Latest Java Posts
Java Records: Immutable Data Carriers
Learn how Java records reduce boilerplate for immutable data carriers, including syntax, compact constructors, restrictions, and when to use them instead of traditional classes.
Java Switch Expression Pattern Matching
Learn how Java switch expression pattern matching works: type patterns, guarded cases, sealed-type exhaustiveness, null handling, and common pitfalls.
Java Switch Expression with Enum Types
Learn how to use Java switch expressions with enums: arrow syntax, yield, exhaustiveness, grouped cases, and compatibility notes.
Java switch expression multiple cases
java switch expression multiple cases: Learn how to use Java switch expressions with multiple case labels, including arrow syntax, yield, and common pitfalls.
Java Switch Expressions: How the yield Keyword Produces Values
Learn how the Java yield keyword produces values from switch expressions, when to use it, and how it differs from the return statement.
Java Switch Expressions: Syntax and Usage
Learn how Java switch expressions work, including arrow syntax, yield, exhaustiveness, and practical differences from switch statements.
Java Text Block Indentation: How to Control It
Java text block indentation is stripped based on the block's minimum indentation. Learn how the compiler removes incidental whitespace, how the backslash escape joins lines, and when to use stripIndent() and indent().
Java Text Block Syntax: Multiline Strings in Practice
java text block syntax: Learn Java text block syntax for multiline strings: delimiters, indentation stripping and escape sequences, plus formatting and migration guida...
Java Nested Record Patterns Explained
Learn how Java nested record patterns can deconstruct complex records safely and concisely in a single pattern, with syntax examples, switch usage, and limitations.
Java Record Pattern Matching in Practice
java record pattern matching: Learn how Java record patterns deconstruct records in instanceof and switch, with nested patterns, guards, and null handling.