What is the difference between new Integer(
string) vs Integer.valueOf( string)? I suppose variety is the spice of life, but is there any reason to create Integers one way over the other?
The specification notes:
In other words, this method returns an Integer object equal to the value of:
new Integer(Integer.parseInt(s))
I take that is sun's way of saying "no difference", correct?