LearnFrenzy
Sign in Take a free test

Strings and StringBuilder · Java Strings MCQ · Question 18

What is a text block? Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links