Which of these methods is used to compare two strings such that after comparison output returns different integer values as ( 0 for false, 1 for true)?
A. Equals ()
B. == operator
C. Compare()
D. None of the mentioned
Answer:A
Which of these methods is used to compare two strings such that after comparison output returns different integer values as ( 0 for false, 1 for true)?
A. Equals () B. == operator C. Compare() D. None of the mentioned
Explanation: The comparison is case sensitive in nature and hence different integer values are returned for different conditions as under :