πŸ“Š JAVA
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Hello Good World

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
92
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Ram Avtar Sharma
Publisher
πŸ“ˆ
92%
Success Rate