Multiple choice technology programming languages

StringTokenizer st= new StringTokenizer(String s). The output string is tokenized based on

  1. comma

  2. space

  3. single quote

  4. double quote

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

StringTokenizer with a single String argument uses whitespace (space, tab, newline) as the default delimiter. To tokenize on other characters like commas, you must use the two-argument constructor StringTokenizer(String str, String delim).