Question 18
Back to Exercise
What is a text block in Java 15+?
- A A synchronized block for strings
- B A multi-line string literal written between """ delimiters, with incidental indentation removed Correct
- C A comment style
- D A StringBuilder
Correct Answer: Option B
Ideal for JSON, SQL and HTML inside Java code.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!