A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Programmer Certification (SCJP/OCPJP)
Joined: Mar 01, 2005
Jul 30, 2005 16:17:00
What are octal escapes ? Is '\177' an octal escape ? How is it a valid character literal ?
SCJP 1.5<br />SCWCD 1.4
Joined: Aug 03, 2002
Jul 31, 2005 10:41:00
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
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
2 easy questions
char c='\101'; ..?
Maximum digits allowed for each literal
doubt with octal
Converting String to Integer without losing leading zero's
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015