Solved

For the Following Code, How Many Times Would the While

Question 28

Multiple Choice

For the following code, how many times would the while loop execute?
StringTokenizer st =
New StringTokenizer("Java programming is fun!") ;
While (st.hasMoreTokens() )
System.out.println(st.nextToken() ) ;


A) 7
B) 4
C) 5
D) 1

Correct Answer:

verifed

Verified

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

Related Questions