1. In Java, which one will be used for comparing whether the two String object str 1 and str2 are same

[Assistant Programmer 2016 [MCQ] : 2016]

1. str1 = str2

1

2. strl.equalsignoreCase(str2)

2

3. strl==str2

3

4. All of the above

4
Answer
Comments