Multiple Choice
The statement
S1) startsWith("art")
Has the same result as which of the following?
A) s1.regionMatches(0,"art",0,3) ;
B) s2 = s1.getChars(0,3) ;
S2) equals("art") ;
C) s1.regionMatches(true,0,"art",0,3) ;
D) All of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Given the following declarations: <br>StringBuilder buf;<br>StringBuilder buf2
Q16: Which of the following will create a
Q18: Given the following declarations: <br>StringBuilder buffer =
Q19: Which of the following is not a
Q20: The statement<br>S1)equalsIgnoreCase(s4)<br>Is equivalent to which of the
Q20: Which of the following statements is true?<br>A)
Q23: A String constructor cannot be passed _.<br>A)char
Q24: Consider the String below:<br>String r = "a
Q26: String objects are immutable. This means they
Q26: An anonymous String _.<br>A)has no value<br>B)is a