Multiple Choice
For the following code,how many times would the while loop execute? StringTokenizer strToken =
New StringTokenizer("Cars,trucks,and SUVs " +
"are all types of automobiles.") ;
While (strToken.hasMoreTokens() )
{
System.out.println(strToken.nextToken() ) ;
}
A) 1
B) 5
C) 7
D) 9
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q4: If a string has more than one
Q15: What will be printed after the following
Q27: In a string that contains a series
Q31: The Character wrapper class provides numerous methods
Q32: To convert the int variable, number to
Q35: The StringBuilder constructor used in the following
Q37: The String class's valueOf method accepts a
Q47: You cannot assign a value to a
Q54: When using the StringBuilder class's insert method,
Q56: StringBuilder objects are immutable.