Solved

Given the Following Code, How Many Times Will the While

Question 35

Multiple Choice

Given the following code, how many times will the while loop be executed? 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