Which of the following statements convert a double value d into a string s?

Which of the following statements convert a double value d into a string s?


A. s = (new Double(d)).toString();
B. s = (Double.valueOf(s)).toString();
C. s = new Double(d).stringOf();
D. s = String.stringOf(d);

The correct answer is A


Java

Learn More Multiple Choice Question :