File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes escape sequence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "escape sequence" Watch "escape sequence" New topic

escape sequence

shubhra chauhan

Joined: Aug 31, 2007
Posts: 21
Which of the following are valid escape sequences ?


Select 4 correct options.

3: f
5: x

answer is 1,2,3,4.
i don't know how. they eplained backslash by /* u005c: backslash */ which is denoted by blank space here. Is it true?
Chatura Dilan
Ranch Hand

Joined: Feb 13, 2007
Posts: 44
Your post is not clear, escape sequences are

\n newline

\t tab

\b backspace

\f form feed

\r return

\" " (double quote)

\' ' (single quote)


-----------------------------------<br />If at first you don't succeed, try again without cry. Everytime You will learn what not to do next time, untill you succeed.<br /> <br />SCJP 1.4 (78%)<br />SCWCD 5 (95%)<br />BICT - UCSC
I agree. Here's the link:
subject: escape sequence
It's not a secret anymore!