Tagged articles

preview feature

4 articles · Page 1 of 1
LuTiao Programming
LuTiao Programming
Sep 17, 2026 · Backend Development

Java 27 Finally Lets You Switch on long, double, boolean — With Range Guards

Java 27's preview feature extends switch expressions to all primitive types (long, float, double, boolean) and adds pattern matching with 'when' guards, enabling concise range-based business rules instead of if-else chains, though it remains a preview feature requiring explicit enablement.

Backend DevelopmentJava 27Pattern Matching
0 likes · 11 min read
Java 27 Finally Lets You Switch on long, double, boolean — With Range Guards
Top Architecture Tech Stack
Top Architecture Tech Stack
Sep 18, 2024 · Backend Development

Overview of Java's Null‑Restricted and Nullable Types Preview Feature

The article introduces Java's new preview feature that distinguishes non‑null, nullable, and unspecified types using syntax like Foo! and Foo?, explains its safety benefits, compatibility, automatic null‑pointer detection, strict initialization rules, and flexible nullness conversion, while also containing promotional material for IDE tools.

Backend DevelopmentJavaNull Safety
0 likes · 5 min read
Overview of Java's Null‑Restricted and Nullable Types Preview Feature
macrozheng
macrozheng
Aug 28, 2024 · Fundamentals

How Java’s New Null‑Restricted Types Aim to Eradicate NullPointerExceptions

This article explains Java’s preview Null‑Restricted and Nullable type system, showing how the new syntax (Foo! and Foo?) lets developers explicitly declare nullability, improves compile‑time safety, integrates with existing code, and compares the approach to TypeScript’s ! and ? operators.

JavaNull SafetyType System
0 likes · 7 min read
How Java’s New Null‑Restricted Types Aim to Eradicate NullPointerExceptions
Java Architecture Diary
Java Architecture Diary
Aug 21, 2024 · Backend Development

How Java’s New Null‑Restricted Types Aim to Eradicate NullPointerExceptions

This article explains Java’s upcoming preview feature that introduces Null‑Restricted (Foo!) and Nullable (Foo?) types, detailing how they express nullability, improve compile‑time safety, ensure strict initialization, and compare with TypeScript’s ! and ? operators, while outlining future adoption prospects.

Null SafetyType Systempreview feature
0 likes · 7 min read
How Java’s New Null‑Restricted Types Aim to Eradicate NullPointerExceptions