What will be the output of following code? StringBuilder sb = new StringBuilder("UpWork"); sb.insert(6,"-"); sb.insert(0,"-"); sb.insert(4,"-"); System.out.println(sb);
Correct Answer: -UpW-ork-
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions