Multiple choice

Which of the following functions are valid in Java for Strings?

  1. valueOf()

  2. toCharArray()

  3. toIntArray()

  4. Both the options 1 and 2

  5. Both the options 1 and 3

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

This is the correct answer.