Multiple choice

Which class from the following options contains decode(String str) method?

  1. Float

  2. Double

  3. Long

  4. Character

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This answer is correct. Long, Byte, Short, Integer classes do have the decode method which will return the respective Class object like Long, Byte, Short, Integer based on the call from the respective classes. Also,  the object that is returned contains the value specified by the string.