Skip to content

Glossary: Java Basics

Concatenation

Also written: joining strings, string concatenation

Joining strings with `+`. If one side is a number, Java turns it into text first, and it works from left to right: `"Total: " + 2 + 3` gives `Total: 23`.

Where the book teaches it

Related terms

StringFormat string