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
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
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Programmer Certification (OCPJP)
legal identifiers
chinnanu chinna
Greenhorn
Posts: 10
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
int e#;
why this one is not legal identifier
lalitha kaparapu
Greenhorn
Posts: 16
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Chinna,
Legal identifiers must be composed of only Unicode characters,
numbers, currency symbols, and connecting characters (like underscores).
In int e#;
You are including # which does not come under above characters..So its not legal.
chinnanu chinna
Greenhorn
Posts: 10
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thank you
Kelvin Chenhao Lim
Ranch Hand
Posts: 513
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Also, please note that identifiers may not begin with a digit. But digits are allowed as the second or subsequent characters. This is primarily to avoid conflicts with numeric literals (e.g. 1L or 1.0f).
SCJP 5.0
I knew that guy would be trouble! Thanks tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
extends v/s fully qualified name
Weird Pronunciations
Clarification needed on K&B use of "legal" and "appropriate" regarding hashCode() implementations
EU inching closer to the US
byte
More...