Programming String

A programming string is a combination of characters joined together or multiple strings joined in a longer string. It can either remain unchanged or can be changed, depending on the type of string and the programming language. Different languages have mutable (changeable) and immutable (unchangeable) strings. Strings can also be fixed or variable in length. In Python, for example, each character is its own immutable string, and those strings are joined together to form longer strings.

String literals

A string literal is a character or character string that holds the same value and remains unchanged. Instead of using variables to perform a specific function within the string, a string literal remains the same in both code and published content. To denote a string literal within programming, most languages use delimiters, which bracket or set apart the string (often using parentheses, quotation marks, or brackets).

String concatenation

Concatenation joins characters or strings together, often using a symbol called an operator (commonly + ). Concatenation can create compound character strings by joining two strings. Concatenation may not always require an operator for two string literals (in Python, for example). Some programming languages don’t easily concatenate strings and require more complicated functions to join them.

Webopedia Staff
Webopedia Staff
Since 1995, more than 100 tech experts and researchers have kept Webopedia’s definitions, articles, and study guides up to date. For more information on current editorial staff, please visit our About page.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.

Related Articles

Embedded Analytics

Embedded analytics brings self-service business intelligence to everyday application users.

HRIS

Human resources information system (HRIS) solutions help businesses manage multiple facets of their workforce operations. They provide a central platform for human resources professionals...

Complete List of Cybersecurity Acronyms

Cybersecurity news and best practices are full of acronyms and abbreviations. Without understanding what each one means, it's difficult to comprehend the significance of...

Human Resources Management System

A Human Resources Management System (HRMS) is a software application that supports many functions of a company's Human Resources department, including benefits administration, payroll,...

ScalaHosting

ScalaHosting is a leading managed hosting provider that offers secure, scalable, and affordable...

HRIS

Human resources information system (HRIS) solutions help businesses manage multiple facets of their...

Best Managed Service Providers...

In today's business world, managed services are more critical than ever. They can...