wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Why cant we have identifiers starting with number in java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why cant we have identifiers starting with number in java ?" Watch "Why cant we have identifiers starting with number in java ?" New topic
Author

Why cant we have identifiers starting with number in java ?

Suren Khatana
Greenhorn

Joined: Aug 01, 2009
Posts: 1
Why cant we have identifiers starting with number in java ?

Thanks
Suren
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
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

Joined: Oct 27, 2005
Posts: 19649
    
  18

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: http://aspose.com/file-tools
 
subject: Why cant we have identifiers starting with number in java ?
 
Similar Threads
Illegal Identifiers
Garbage collector
Queries related to K&B SCJP 6 book
Why a legal identifier cannot include the character #
Enums with numbers