+ 3
Valid and invalid variable names in java
hi there , can any one tell me, what are the invalid characters to be used in variable names, i know we should write clear variable names to make code easier to read , but iam talking about the rules.. what is valid and what is not ?
3 Respostas
+ 3
The exact definition is in http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.8
+ 1
$
+ 1
always write variables in camelSpace . thats important if you work in bigger projects to easily find the difrence beetween methods wich always should Start with an capital letter and variables wich always should Start with an small letter for clearens. beides only use the default chars no spezial Sings like ~||ö&