Monthly Archives: April 2013

Null Checking in Java

Learnt something new today!   In order to prevent the accidental setting of a variable to null like so: 1 2 3 4 5 6 7 8 private void testMethod(Boolean b) { if (b = null) { //Ack! This works … Continue reading

Posted in David's Blog, News | Tagged | Leave a comment