By Reinier Zwitserloot null. It’s one of the first things you learn in Java; if not because your teacher or tutorial is outright telling you all about it, you’ll be confronted with a NullPointerException. Let’s revisit the topic. I’ll show you a few tricks to sidestep the need to deal with null, or null lookalikes, […]

Read more

I’m sure you’ve all heard that assigning a variable to null helps the Garbage Collector, or not declaring a method final improves inlining….But what you also know is that JVMs have evolved drastically, and what was true yesterday may not necessarily be true today. So, how do we know that our code performs? Well, we don’t, because we are […]

Read more