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. Angellaa says:

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

  2. Christoper says:

    First blog I read after wakeup from sleep today!

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

  3. Mike says:

    First blog I read after wakeup from sleep today!

  4. Prinuefef says:

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

  5. Acurnerololop says:

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

Leave a Reply

Your email address will not be published. Required fields are marked *