KnowledgeBoat Logo

Computer Applications

What are escape sequences in Java? Give three examples.

Values & Data Types Java

ICSE

66 Likes

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.

Answered By

41 Likes


Related Questions