Why # can not use in java identifier? -



Why # can not use in java identifier? -

please allow me explain # can not utilize in java identifier. example. int e#;

and also, allow me know # used in java , use?

because it's not valid symbol in language. can't do:

int hello+*/\variable;

see 3.8. identifiers in java specification:

an identifier unlimited-length sequence of java letters , java digits, first of must java letter.

http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.8

java identifier

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -