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