CharSequence VS String in Java?

charsequence, java, string

Solution

Strings are CharSequences, so you can just use Strings and not worry. Android is merely trying to be helpful by allowing you to also specify other CharSequence objects, like StringBuffers.

Problem

Programming in Android, most of the text values are expected in `CharSequence`. Why is that? What is the benefit, and what are the main impacts of using `CharSequence` over `String`? What are the main differences, and what issues are expected, while using them, and converting from one to another?

Original source

Related problems