Computer Science, asked by AbdullahAzhar4703, 1 year ago

What is difference between substring and subsequence?

Answers

Answered by Akhilrajput1
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