Solved

Which of the Following Statements Will Convert the String, Str

Question 20

Multiple Choice

Which of the following statements will convert the string, str = "285.74" to a double?


A) double x = str;
B) double x = Double.parseDouble(str) ;
C) double x = Double.Double(str) ;
D) double x = str.Double.parseDouble;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions