Programming Languages C# Objective
Mar 06, 2013

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

Choose the correct answer:
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();
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback