Is string comparable Java?

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.

Sizin İçin Seçtik  How many classes are in the Java class library?

Leave a Reply

Your email address will not be published. Required fields are marked *