Tagged articles
10 articles
Page 1 of 1
Java Backend Technology
Java Backend Technology
Jul 18, 2025 · Backend Development

Why Did My New Java Developer Trigger NPE? Lessons & Fixes

A new Java developer caused a production NullPointerException while matching third‑party data, and the article walks through reproducing the bug, analyzing each faulty line, and applying defensive programming techniques such as early returns, Optional, Objects.equals, and collection checks to prevent similar crashes.

Objects.equalsOptionalcode quality
0 likes · 6 min read
Why Did My New Java Developer Trigger NPE? Lessons & Fixes
Java High-Performance Architecture
Java High-Performance Architecture
Feb 20, 2023 · Backend Development

Why Objects.equals Beats a.equals in Java: Null Safety and Source Code Explained

This article explains how Java's Objects.equals differs from the traditional a.equals(b) method, covering null and empty‑string scenarios, demonstrating safe comparisons without NullPointerExceptions, and includes a concise analysis of the underlying source code and the distinction between a==b and a.equals(b).

Null HandlingObjects.equalsequality
0 likes · 5 min read
Why Objects.equals Beats a.equals in Java: Null Safety and Source Code Explained
IT Services Circle
IT Services Circle
Mar 30, 2022 · Fundamentals

Understanding Objects.equals and Common Pitfalls in Java Equality Checks

This article explains how Java's Objects.equals works, compares it with the == operator and the equals method of primitive wrappers, demonstrates typical null‑pointer and type‑mismatch pitfalls, and provides practical code examples and solutions for reliable value comparison.

Objects.equalsTypeCastingequality
0 likes · 14 min read
Understanding Objects.equals and Common Pitfalls in Java Equality Checks