What is escape characters in Java? | Sololearn: Learn to code for FREE!

+3

What is escape characters in Java?

Explain with an example.

2/11/2019 4:04:03 AM

Nitin Gutte

1 Answer

New Answer

+7

"n" on its own means nothing if we use the escape charactor ➡"\" and place ➡ "n" next to it ➡ "\n" this is an escape sequence the character following the backslash is parsed as it is in that location using its special meaning in this example a newline.