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

The Character wrapper class does not have a valueOf(String) method because it would be unclear which character from a multi-character string should be returned. Character only has valueOf(char). Other wrappers like Integer, Boolean, and Long all accept String input for conversion.