Multiple Choice
Consider the Java segment:
String line1 = new String("c = 1 + 2 + 3") ;
StringTokenizer tok = new StringTokenizer(line1, "+=") ;
String foo = tok.nextToken() ;
String bar = tok.nextToken() ;
The values of foo and bar are:
A) foo is "c ", bar is " = ".
B) foo is "c", bar is " ".
C) foo is " = ", bar is " + ".
D) foo is "c ", bar is " 1 ".
Correct Answer:

Verified
Correct Answer:
Verified
Q10: The statement<br> s1.equalsIgnoreCase(s4)<br>Is equivalent to which of
Q11: Consider the statement below: <br>StringBuilder sb1 =
Q12: Which class is not a type-wrapper class?<br>A)
Q13: Consider the statements below: <br>StringBuilder sb =
Q14: An anonymous String _.<br>A) has no value<br>B)
Q16: To find the character at a certain
Q17: StringBuilder objects can be used in place
Q18: Given the following declarations: <br>StringBuilder buffer =
Q19: Which of the following is not a
Q20: Which of the following statements is true?<br>A)