Given the following code:
StringBuilder sb = new StringBuilder("ab");
sb.append("bc");
sb = sb.append("cd");
System.out.println(sb); What does it output?
Given the following code:
StringBuilder sb = new StringBuilder("ab");
sb.append("bc");
sb = sb.append("cd");
System.out.println(sb); Create a free account to access the full topic