1.

Which of the following statements will correctly copy the contents of one string into another ?

A. String s1 = "String"; String s2; s2 = s1;
B. String s1 = "String" ; String s2; s2 = String.Concat(s1, s2);
C. String s1 = "String"; String s2; s2 = String.Copy(s1);
D. String s1 = "String"; String s2; s2 = s1.Replace();
Answer» D. String s1 = "String"; String s2; s2 = s1.Replace();


Discussion

No Comment Found

Related MCQs