Multiple choice technology programming languages

Which one does not have a ValueOf(String) method?

  1. integer

  2. boolean

  3. character

  4. long

Reveal answer Fill a bubble to check yourself
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.