ICSE Class 9 Computer Applications Question 1 of 14

Values and Data Types — Question 1

Back to all questions
1
Question

Question 1

What are escape sequences in Java? Give three examples.

Answer

An escape sequence is a set of characters that has a special meaning to the Java compiler. In the escape sequence, a character is preceded by a backslash (\). Some examples of escape sequences are \n, \' and \t.