What is the output

Report a typo

Given the following code:


StringBuilder sb = new StringBuilder("ab");
sb.append("bc");
sb = sb.append("cd");

System.out.println(sb);

What does it output?
Select one option from the list
___

Create a free account to access the full topic