A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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:
doubt with octal
2 easy questions
Converting String to Integer without losing leading zero's
Maximum digits allowed for each literal
char c='\101'; ..?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014