Home »
MCQs »
C# MCQs
Except == operator, which methods can be used to compare two strings?
55. Except == operator, which methods can be used to compare two strings?
- Equals()
- Compare()
- Both A and B
- None of these
Answer: C) Both A and B
Explanation:
The Equals() and Compare() methods can also be used to compare two strings in C#.