Multiple Choice
In the following code, how many times will the for loop execute?
String str = ("Ben and Jerry's ice cream is great.") ;
String[ ] tokens = str.split(" ") ;
For (String s : tokens)
System.out.println(s) ;
A) 1
B) 3
C) 5
D) 7
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q28: StringBuilder objects are not immutable.
Q29: The no-arg constructor for a StringBuilder object
Q30: The term _ commonly is used to
Q31: The StringBuilder class's insert method allows you
Q32: Each of the numeric wrapper classes has
Q34: What would be the results of executing
Q35: The following statement correctly creates a StringBuilder
Q36: Trying to extract more tokens than exist
Q37: The String class's valueOf method accepts a
Q38: What are the tokens in the following