What are valid identifiers:
miles, Test, a++, --a, 4#R, $4, #44, apps, class, public, int, x, y, radius
miles //valid Test //valid a++ //not valid --a //not valid 4#R //not valid, cannot start with number $4 //valid #44 //not valid apps //valid class //not valid, keyword public //not valid, keyword int //not valid, type name x //valid y //valid radius //valid
Rules for creating valid identifiers:
_
, and dollar signs $
. _
, or a dollar sign $
. Since Java is case sensitive, area, Area, and AREA are all different identifiers.