Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
Why cant we have identifiers starting with number in java ?
Suren Khatana
Greenhorn
Posts: 1
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why cant we have identifiers starting with number in
java
?
Thanks
Suren
pete stein
Bartender
Posts: 1561
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Welcome to JavaRanch.
regarding
forums.sun.com post
Please read the FAQ about posting questions here, including the link on
Be Forthright When Cross Posting To Other Sites
Rob Spoor
Sheriff
Posts: 22783
131
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The simple answer: because that's how the language was designed. Another simple answer: because no other programming language allows it.
A better answer: probably because this way, it's easier for the parser to identify whether or not something is a number or not.
Moving to Beginning Java.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Illegal Identifiers
Garbage collector
Enums with numbers
Why a legal identifier cannot include the character #
Queries related to K&B SCJP 6 book
More...