Choose correct output for following piece of code String s1 = “Abc”;

Choose correct output for following piece of code   String s1 = “Abc”; String s2; s2 = s1.insert(6, "Xyz"); Console.WriteLine(s2);
  • A. AbXyzc
  • B. Abc Xyz
  • C. Abc
  • D. AbcXyz
  • Correct Answer: Option D
  • Views : 23

Leave a Reply

Your email address will not be published. Required fields are marked *