- What are the escape sequences in Java?
- What are the escape characters in Java?
Generally we enter all the characters directly. The escape sequences are used for those characters which cannot be entered directly.
|\n||New Line (i.e. Line feed)|
|\ddd||Octal Characters (i.e. ddd)|
|\uxxxx||Hexadecimal Unicode Characters (i.e. xxxx)|
Escape Sequences in Java