Question: What is Text Blocks or Multi-line string in Java 15?Answer:Until now, when we wanted to define a multi-line string in Java, it usually looked like this:
Starting with Java 15, we can notate this string as a "text block":
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Java 15?
- What is Text Blocks or Multi-line string in Java 15?
- What are New String and CharSequence Methods in Java 15?
- What is CharSequence.isEmpty() in Java 15?
- Provide the release notes of Java 15.