The raw string literals are non-interpreted string literals. In real-world projects, you would need to work with literal string values as is, without any special handling of the Unicode values, backslashes, or newlines. Raw string literals set aside Java escapes and Java line terminator specifications, in order to make the code readable and maintainable.
Welcoming raw string literals
Rewriting using raw strings
You can define a multiline string value by using raw literals, as follows:
String html = `<HTML> <BODY> <H1>Meaning of life</H1> </BODY> </HTML> `;
By using ` as the opening and closing delimiter, you can define multiline...