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

Integer, Boolean, and Long wrapper classes all have valueOf(String) methods for string-to-primitive conversion. Character is the exception - it uses charValue() and has no valueOf(String) method.