devxlogo

August 7, 2017

Using valueOf() Instead of toString()

The valueOf() method is useful when you do not know the value contained and it might throw a NullPointerException. It returns null and you can handle the same in your code