Multiple choice

Which of the following functions is used in Java to extract more than one character at a time?

  1. getChars()

  2. getBytes()

  3. toCharArray()

  4. none of these

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

The getChars() function is used in Java to extract more than one character at a time.