Solved

For the Following Code,how Many Times Would the While Loop

Question 46

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:

verifed

Verified

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

Related Questions