Best Practices: Avoid Returning Null
June 9, 2010 by Frank Salinas · 5 Comments
I recall the first oddity that struck me about Java programming is that it seems common practice to test returned objects for null. I find it frustrating and inefficient to scatter if conditions throughout my code just to see if I have a valid object instance returned. Read more