Skip to content
క
kagitha
/
strings
Subscribe
Index
⌘K
TAG · 1 ARTICLE
#strings
JAVA
Java text blocks explained: multiline strings in Java
Text blocks let you write JSON, SQL, HTML and LLM prompts in Java exactly as they look, without escaped quotes or \n on every line. Here is the syntax, how Java decides what indentation to keep, the two escapes worth knowing, and how to fill in values.
16 Nov 2026 · 5 min
kagitha
Close
✕
Search everything — articles, videos, chapters, agents, books
01
AI
02
Java
03
System Design
04
Series
05
Manga
06
The Lab
07
Videos
08
Quizzes
09
Books
10
Resume