Skip to content
Quiz · Strings · lesson 8 of 11

Quiz — append and reverse

What does the program print?

JAVA
public class Main {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder("abc");
        sb.append("d").reverse();
        System.out.println(sb);
    }
}