1 Answer

0 votes
by

Java 1.4 introduced CharSequence interface and String implements this interface, this is the only reason for the implementation of subSequence method in String class. Internally it invokes the String substring method.

Check this post for String subSequence example.

...