Which of the following string() method are used to compare two strings with each other?
A. CopyTo()
B. Copy()
C. Compare()
D. CompareTo()
Answer:B
Which of the following string() method are used to compare two strings with each other?
A. CopyTo() B. Copy() C. Compare() D. CompareTo()
Explanation: Creates a new string by copying one string to another.