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
Q1: A String constructor cannot be passed _.
A)char
Q7: Which of the following is not a
Q13: Consider the statements below:
StringBuilder sb =
Q14: Given the following declaration:
StringBuilder buf =
Q15: An anonymous String _.
A)has no value
B)is a
Q16: How many String objects are instantiated by
Q17: The length of a string can be
Q18: String objects are immutable. This means they
Q19: Given the following declarations:
StringBuilder buffer =
Q20: The String method substring returns _.
A)a char
B)a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents