Tag: escape sequences in java

Java Escape Sequences

May 19, 2013 · 1 min read
##### "**Escape sequence is a character which escapes normal sequence of output (evaluation)**". Escape sequences are very common in a language. Escape sequence precedes with a **\** (backslash). For example, **\n** stands for new line; even though it looks two characters, Java treats them as one character with **ASCII code** of **10**. Escape sequence, being a single character, should be put within single quotes.