Question
What is the string contained in s after following lines of code?
StringBuffer s new StringBuffer("Hello);
s.deleteCharAt(0);
Answer: Option B
Was this answer helpful ?
deleteCharAt() method deletes the character at the specified index location and returns the resulting StringBuffer object.
Was this answer helpful ?
Submit Solution