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
Q1: Given the following declaration: <br>StringBuilder buf =
Q3: Consider the Java segment: <br>String line1 =
Q5: Which of the following are static Character
Q5: The length of a string can be
Q6: Consider the examples below: <br>A. a string.<br>B.
Q13: Consider the statements below: <br>StringBuilder sb =
Q20: Which of the following statements is true?<br>A)
Q23: Which of the following creates the string
Q26: An anonymous String _.<br>A)has no value<br>B)is a
Q26: String objects are immutable. This means they