MCQs
Total Questions : 26
| Page 3 of 3 pages
Answer: Option A. -> reverse() method reverses all characters.
reverse() method reverses all characters. It returns the reversed object on which it was called.
Answer: Option A. -> substring()
substring()
Answer: Option A. -> reverse()
reverse() method reverses all characters. It returns the reversed object on which it was called.
Answer: Option A. -> length()
length()- returns the length of String the StringBuffer would create whereas capacity() returns total number of characters that can be supported before it is grown.
Answer: Option C. -> onetwo
Two strings can be concatenated by using append() method.
Answer: Option D. -> StringBuffer(int size , String str)
StringBuffer(int size , String str)