+ 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 ?

17th Feb 2017, 12:25 PM
Srwa Gailan
Srwa Gailan - avatar
3 Respuestas
17th Feb 2017, 12:47 PM
orsi
+ 1
$
18th Feb 2017, 3:53 PM
ankit kumar
ankit kumar - avatar
+ 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 ~||ö&
28th Feb 2017, 7:25 PM
Florian Bässler
Florian Bässler - avatar