What is difference between substring and subsequence?
Answers
Answered by
0
A substring of a string is a prefix of a suffix of the string, and equivalently a suffix of a prefix. If one string is a substring ofanother, it is also a subsequence, which is a more general concept. But as far as Java is concerned, there isn't any difference in their use as stated clearly in the javadoc.
Similar questions