Skip to main content

Practice · 3 of 4

Exam MCQ

CHALLENGE
Difficulty: advanced+25 XP

What is printed? ``java StringBuilder s = new StringBuilder("ab"); s.insert(1, "X"); s.deleteCharAt(0); System.out.print(s); ` A. Xb B. ab C. bX D. Xa` Print the letter, then your one-sentence justification.

Back to lesson: Practice: Exam #2: MCQ section