Java

Safely toString a Java object

In this little article, we will see how to get the string representation(tostring) of an object cautiously, that means avoiding NullPointerException. Getting the String representation of a Java object is something we often do for logging, debugging, or simply for overview purpose. For a null object we will be directed to Read more...

By Orleando Dassi, ago