aspose file tools*
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
Author

escape sequence

shubhra chauhan
Greenhorn

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



Options

Select 4 correct options.

1:
2:
3: f
4:
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: escape sequence