All about Java String.
Comparison of the java string could be done in various ways, as given below. It is dependent upon javastringcompare type that which of them will be used.
* == Operator
* equals method
* compareTo method
Comparing, by using the “== Operator”
When String object references are compared, ==operator is used. If 2 variables of String are pointed towards similar object present in memory, then comparison will be returned true. In other case it will return false. It shall