TAG · 4 ARTICLES
#records
- JAVAPython classes for Java developers: __init__, self, dataclasses and PydanticA Python class is a Java class with less typing: __init__ is the constructor, self is this, and there's no new. Then come the two shortcuts you'll see everywhere: @dataclass, Python's record, and Pydantic, a record that validates its data.29 Nov 2026 · 5 min
- JAVAJava 21 features for AI apps: records, sealed types and moreLLM code has three hard parts: messy JSON, replies that come in many shapes, and calls that take seconds. Modern Java has a feature for each. Here is how records, sealed types, pattern matching, text blocks and virtual threads fit AI work.17 Nov 2026 · 8 min
- JAVAJava records explained: one-line data classes, with examplesOne line replaces a 40-line data class. Here is what a Java record gives you for free, how to add validation and methods, where records fit, where they don't, and what Java 21's record patterns add.16 Nov 2026 · 5 min
- JAVAJava sealed classes and interfaces explained, with examplesA sealed class says exactly which classes may extend it, and the compiler enforces the list. Here is why that matters, the rules for permits, final, sealed and non-sealed, and how sealed types plus records give you switch statements the compiler can check.16 Nov 2026 · 5 min