0 votes
in JAVA by

What is String subSequence method?

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.

Related questions

0 votes
asked Mar 16, 2021 in JAVA by Robindeniel
0 votes
asked Mar 16, 2021 in JAVA by Robindeniel
...