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:

Verified
Correct Answer:
Verified
Related Questions
Q3: What will be the value of position
Q6: Most of the String comparison methods are
Q7: What will be displayed after the following
Q11: What will be displayed after the following
Q34: You may cause an off-by-one error when
Q36: Which of the following statements converts a
Q44: You can concatenate String objects by using
Q45: The term _ is commonly used to
Q56: What will be the value of position
Q58: The _ method returns a copy of