String
A string is a sequence of characters used to represent text. It is one of the most fundamental data types in programming and is used for storing and manipulating textual data.
- Immutable: In many languages, strings are immutable, meaning once created, they cannot be changed. Instead, operations on strings create new strings.
- Sequence of Characters: Strings are composed of characters, which can include letters, numbers, symbols, and whitespace.
- Encoding: Strings are often encoded using standards like ASCII, UTF-8, or Unicode to represent characters.