Escape Characters in Java

Escape Characters in Java

Java provides escape sequences for several non-graphical characters. All characters can be specified as a hexidecimal Unicode character (uxxxx) with some as an octal character (ddd where the first d is limited to 0-3, and the others 0-7 – same as u0000-u00ff).

  n	New line
  t	Tab
  b	Backspace
  r	Carriage return
  f	Formfeed
  \	Backslash
  '	Single quotation mark
  "	Double quotation mark
  d	Octal
  xd	Hexadecimal
  ud	Unicode character

Feel free to add more in comments I will be happy to update the post.
Post Tagged with

5 Responses so far.

  1. Acurnerololop says:

    Need more info about Multi stress syllable word? You are welcome! on http://metacures.biz

  2. Prinuefef says:

    Last blog news about health and diet. http://teplovozik.biz

  3. Mike says:

    First blog I read after wakeup from sleep today!

  4. Christoper says:

    First blog I read after wakeup from sleep today!

    —————————-
    Relax your mind!

  5. Angellaa says:

    Hmm, very cognitive post.
    Is this theme good unough for the Digg?