1

In the following Java code, which code fragment should be inserted at line 3 so that the output will be:

Correct Answer: sb1.append("abc"); s1 = s1.concat("abc");

Make the most of this question

This page focuses on one JAVA MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

JAVA MCQs MCQ: In the following Java code, which code fragment should be inserted at line 3 so that the output will be: | Extra Education