Java String compare. We can compare String in Java on the basis of content and reference . It is used in authentication (by equals() method), sorting (by compareTo() method), reference matching (by == operator) etc.
Java String compare. We can compare String in Java on the basis of content and reference . It is used in authentication (by equals() method), sorting (by compareTo() method), reference matching (by == operator) etc.