InterviewSolution
Saved Bookmarks
| 1. |
What Would You Use To Compare Two String Variables - The Operator == Or The Method Equals()? |
|
Answer» I would USE the method EQUALS() to compare the values of the STRINGS and the == to check if two VARIABLES point at the same instance of a STRING object. I would use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object. |
|