πŸ“Š C#
Q. If s1 and s2 are references to two strings, then which of the following is the correct way to compare the two references?
  • (A) s1 is s2
  • (B) s1=s2
  • (C) s1==s2
  • (D) s1.Equals(s2)
πŸ’¬ Discuss
βœ… Correct Answer: (D) s1.Equals(s2)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
298
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
85%
Success Rate