FunTester
Apr 12, 2020 · Fundamentals
Why Groovy’s null behaves differently from Java’s null – A deep dive
This article compares Java’s null, which throws NullPointerException on member access, with Groovy’s NullObject that safely handles method calls, explains the underlying implementation, demonstrates practical code examples, and shows how to customize NullObject behavior via metaClass extensions.
GroovyNullObjectjava
0 likes · 4 min read
