int result_int = s1.compareTo(s2);
The result_int will be -ve value, It means
.compareTo method says s1 is lesser than s2.
My question is=> if
.compareTo method is from Comparable interface,then an interface method how should have body?? if
compareTo method doesn't have body, How it will return integer value while passing two objects.