When retrieving MBean data from JConsole or VisualVM the output is being formatted using Java's toString() method. Though MBeans are very convenient large output becomes unreadable. Hence, I needed ...
In this little article, we will see how to get the string representation(tostring) of an object cautiously, that means avoiding NullPointerException. Getting the ...