This tutorial demonstrate the java escape sequence with example.
This tutorial demonstrate the java escape sequence with example.In java any character that is preceded by a backslash (\) is known as escape sequence, which has special meaning for the compiler. Following are list of Java escape sequences
Escape Sequence | Meaning |
\t | tab |
\n | new line |
\r | carriage return |
\' | single quote |
\" | double quote |
\\ | backslash |
public class ExcapeSeq {
|