Multiple Choice
For the following code,how many times would the while loop execute? StringTokenizer strToken =
New StringTokenizer("Ben and Jerry's ice cream is great.") ;
While (strToken.hasMoreTokens() )
{
System.out.println(strToken.nextToken() ) ;
}
A) 1
B) 3
C) 5
D) 7
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: If you are using characters other than
Q15: What will be the value of matches
Q40: If you do not specify delimiters in
Q41: What will be the value of loc
Q42: Look at the following code. Integer myNumber;<br>MyNumber
Q43: What will be the value of loc
Q43: Assuming that str is declared as follows:
Q44: What would be the results of executing
Q45: What will be the tokens in the
Q53: You must call a method to get