Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Strings
If s1 and s2 are references to two strings, then which of the following is the correct way to compare the two references?
s1 is s2
s1 = s2
s1 == s2
strcmp(s1, s2)
s1.Equals(s2)
Show Answer
Correct Answer:
s1.Equals(s2)
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment