Strings - Study Mode

[#51] Which of these method of class StringBuffer is used to find the length of current character sequence?
Correct Answer

(A) length()

[#52] Which of these class is superclass of String and StringBuffer class?
Correct Answer

(B) java.lang

[#53] Which of these constructors is used to create an empty String object?
Correct Answer

(A) String()

[#54] Which of this method of class StringBuffer is used to reverse sequence of characters?
Correct Answer

(A) reverse()

[#55] Which of these methods of class StringBuffer is used to extract a substring from a String object?
Correct Answer

(A) substring()