MJMohit jaininjainmohit0807.hashnode.dev·Aug 26, 2025 · 3 min readText Block in JavaWhat is a text block? A multi-line string literal delimited by triple quotes """ that preserves newlines and most indentation—perfect for JSON, SQL, HTML, or templates. String json = """ { "name": "Alice", "age": 25 } """; Wh...00