Q. What is the string contained in s after following lines of code?
Code:
StringBuffer s new StringBuffer("Hello"); s.deleteCharAt(0);
β
Correct Answer: (B)
ello
StringBuffer s new StringBuffer("Hello"); s.deleteCharAt(0);
You must be Logged in to update hint/solution