Multiple Choice
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)
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: Which of the following statements is correct
Q11: _ parameters are used to pass results
Q12: Which of the following statements are correct
Q13: _ variables are visible only in the
Q14: Correct statement about constructors in C#.NET is
Q16: What will be the output of the
Q17: The formal-parameter-list is always enclosed in _.<br>A)Square<br>B)Semicolon<br>C)Parenthesis<br>D)Colon
Q18: Which of the following statements are correct?1.
Q19: Which of the following statements are correct
Q20: Which of the following statements is correct