Originally posted by swarna kumar:
hi,
this is very basic ques,but i couldn't get,
what are the legal identifiers i java?
i)Integer
ii)�test
iii)-123
thx
swarna
Hi swarna,
The legal identifiers are (i) & (ii) and the third one will give you compile time error, because an identifier cannot start with a hyphen but it can start with an underscore.
Bye.