Solved

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

Question 18

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:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents