Which one does not have a ValueOf(String) method?
-
integer
-
boolean
-
character
-
long
C
Correct answer
Explanation
In Java, the wrapper classes Integer, Boolean, and Long all have static valueOf(String) methods that parse string representations into their respective wrapper types. The Character wrapper class does not have a valueOf(String) method - it has valueOf(char) instead, which requires a char primitive.