What is the output of the following?
StringBuilder builder = new StringBuilder(); String str = new String("v"); do { System.out.println(str); } while (builder); System.out.println(builder);
C.
A do-while loop requires a boolean condition.
The builder variable is a StringBuilder and not a boolean.
The code does not compile, and Option C is correct.