A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Why cant we have identifiers starting with number in java ?
Joined: Aug 01, 2009
Aug 01, 2009 12:21:57
Why cant we have identifiers starting with number in
Joined: Feb 23, 2007
Aug 01, 2009 12:26:07
Welcome to JavaRanch.
Please read the FAQ about posting questions here, including the link on
Be Forthright When Cross Posting To Other Sites
Joined: Oct 27, 2005
Aug 01, 2009 15:38:27
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
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Why cant we have identifiers starting with number in java ?
Enums with numbers
Why a legal identifier cannot include the character #
Queries related to K&B SCJP 6 book
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015