Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Programmer Certification (OCPJP)
Doubt about char type
Manishk Rai
Greenhorn
Posts: 21
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All ,
Below line does compile and prints 5
.
char ch='\65'; System.out.println(ch);
But the below does not compile
char ch='\85'; System.oot.println(ch);
Please explain with the reason .
Thanks in Advance
Manish
Sanjeev Singh
Ranch Hand
Posts: 381
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Manishk,
Initializing a character with the value which starts with \(escape sequence) implies that the numbers are Octal ,unless prefixed with 0x for hexadecimal, so non of the digits should exceed 7.
~Sanjeev Singh<br />SCJP 1.5
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Prompt for file name
Basic Java Problem....HELP!!!!
char literals
can you increment letters?
Method-Call Conversion with Overloaded Methods
More...