Tag

null-pointer

0 views collected around this technical thread.

DevOps Cloud Academy
DevOps Cloud Academy
Jun 3, 2024 · Fundamentals

Understanding NULL: The Silent Killer in Code and How to Mitigate Its Risks

NULL, the ubiquitous placeholder for missing values, can silently introduce bugs, crashes, and data inconsistencies across languages and databases, but by understanding its pitfalls and applying strategies like optional types, default values, Null Object patterns, and proper database constraints, developers can significantly improve code reliability.

Best PracticesDatabaseNULL
0 likes · 10 min read
Understanding NULL: The Silent Killer in Code and How to Mitigate Its Risks
Java Captain
Java Captain
Dec 22, 2018 · Fundamentals

Why Printing a Null Object in Java Does Not Throw an Exception

This article explains why Java's print methods output the literal "null" instead of throwing a NullPointerException, by examining the source code of PrintStream.print for both String and Object arguments, the behavior of String.valueOf, and the compiler‑generated StringBuilder handling of null during concatenation.

JavaStringBuilderfundamentals
0 likes · 7 min read
Why Printing a Null Object in Java Does Not Throw an Exception