Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Correct use of escape sequences in string literals requires understanding of how the escape sequences are interpreted by the Java compiler. For instance, SQL statements written in Java, for example, sometimes require certain escape characters or may require escape sequences (e.g., sequences containing containing \t, \n, \r) in certain cases, such as when storing raw text in a database. When representing SQL queries statements in Java string formliterals, all each escape sequences sequence must be preceded by an extra backslash for correct interpretation.

...