...
Correct use of escape sequences in string literals requires understanding of how the escape sequences are interpreted by the Java compiler. SQL statements written in Java, for example, sometimes require certain escape characters or sequences (e.g., sequences containing \t, \n, \r). When representing SQL queries in Java string form, all escape sequences must be preceded by an extra backslash for correct interpretation.
...