This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes OctalEscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "OctalEscape" Watch "OctalEscape" New topic
Author

OctalEscape

Rupak Khurana
Ranch Hand

Joined: Mar 01, 2005
Posts: 89
What are octal escapes ? Is '\177' an octal escape ? How is it a valid character literal ?


SCJP 1.5<br />SCWCD 1.4
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I would suggest reading JLS 3 sections 3.10.4 and 3.10.6. Using the syntax definitions found there you can verify whether '\177' is valid or not.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OctalEscape
 
Similar Threads
doubt with octal
2 easy questions
char c='\101'; ..?
Maximum digits allowed for each literal
Converting String to Integer without losing leading zero's