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 instanceexample, SQL statements may require escape sequences (for example, sequences containing \t\n\r) in certain cases, such as when storing raw text in a database. When representing SQL statements in Java string literals, each escape sequence must be preceded by an extra backslash for correct interpretation.

...