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