Загрузка...

The Past, Present, and Future of Null-Safety in Java - Mala Gupta

NullPointerExceptions have long been a source of frustration for Java developers, turning minor oversights into production issues. Null-safety in Java, however, is more than defensive coding—it reflects the language’s evolution toward expressing the absence of a reference more clearly. This session traces that journey from early practices like if (x != null) checks and the Null Object pattern, through annotations, Objects.requireNonNull, and design approaches such as using empty collections instead of null. It also explores how null-safety influenced API design, including the introduction of Optional and its role in making the Stream API more expressive.

Attendees will also learn how static analyzers, linters, and standards like JVerify help prevent unsafe code, and how upcoming JVM-level features in Project Valhalla aim to strengthen nullability guarantees. You will leave with a clear roadmap of how Java’s approach to null-safety has evolved, what tools and techniques are effective today, and what lies ahead for safer, more robust code.

What You Will Learn

•The historical evolution of null-safety in Java and its impact on language design
•Modern best practices for handling nulls using Optional, annotations, and static analysis
•What upcoming JVM-level changes such as Project Valhalla mean for the future of null-safety.

More on-demand engineering talks:
https://saltmarch.com/on-demand

GAINS 2026 | 09th–10th December | Bengaluru
India’s first engineering conference for the AI-native software era
https://ainativesummit.com

GIDS 2027 | 20th Edition | 27th–30th April | Bengaluru
https://developersummit.com"

Видео The Past, Present, and Future of Null-Safety in Java - Mala Gupta канала Developer Summit
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять