Solved

StringTokenizer Is a Class in the Java

Question 35

Multiple Choice

StringTokenizer is a class in the java.util library that can divide a String based on some delimiter String (a delimiter is a separator) . If the instruction StringTokener st = new StringTokenizer(str, "&&") ; is executed, where str is some String, then st divides up str into separate Strings whenever


A) a blank space is found
B) two blank spaces are found
C) a single ampersand ("&") is found
D) two ampersands are found
E) two ampersands or the substring "and" or "AND" is found

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions