Multiple Choice
Consider the Java segment:
String line1 = new String("c = 1 + 2 + 3") ;
StringTokenizer tok = new StringTokenizer(line1, delimArg) ;
For the String line1 to have 4 tokens, delimArg should be:
A) String delimArg = "+=";
B) String delimArg = "123"
C) String delimArg = "c+";
D) String delimArg = " ";
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Given the following declaration: <br>StringBuilder buf =
Q2: Given the following declarations: <br>StringBuilder buf;<br>StringBuilder buf2
Q4: Which of the following statements is true?<br>A)
Q5: Which of the following are static Character
Q6: Consider the examples below: <br>A. a string.<br>B.
Q7: The statement <br>s1.startsWith("art")<br>Has the same result as
Q8: The length of a string can be
Q9: A String constructor cannot be passed _.<br>A)
Q10: The statement<br> s1.equalsIgnoreCase(s4)<br>Is equivalent to which of
Q11: Consider the statement below: <br>StringBuilder sb1 =