Which method is used to convert a String to a double in Java?
a) Integer.parseInt()
b) Integer.valueOf()
c) Double.parseDouble()
d) Double.valueOf()
Answer: c) Double.parseDouble()
Explanation: The Double.parseDouble() method is used to convert a String to a double in Java.