Q95
What will be the output of the following Java code? class output public static void main(String args[]) StringBuffer s1 = new StringBuffer("Hello World"); s1.insert(6 , "Good "); System.out.println(s1);
A.
HelloGoodWorld
B.
HellGoodoWorld
C.
HellGood oWorld
D.
Hello Good World
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board