Except == operator, which methods can be used to compare two strings?

55. Except == operator, which methods can be used to compare two strings?

  1. Equals()
  2. Compare()
  3. Both A and B
  4. 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#.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.