Because it is not the same thing. valueOf() creates a Double object, which is often not needed. parseDouble() no. With autoboxing, it has valueOf(String) , which is no longer needed, but therefore has backward compatibility.
Peter Lawrey Aug 31 2018-11-11T00: 00Z
source share