Multiple choice

What does String nextToken() method of the StringTokenizer class in java do?

  1. It returns the next token as a String and sets the delimiter string.

  2. It returns the next token as a String.

  3. It returns the next token as an Object.

  4. Both (1) and (2)

  5. None of the above

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

Yes, String nextToken() method does that.