posted 22 years ago
a) 2int
No, an identifier can't begin with a number
b) name-lst
No, an identifier can have a dash in it
c) _123
Yes, valid identifier
d) 1dir_list
No, same as the reason for a
e) second-1
No, same as the reason for b
An identifier can begin with a letter, a dollar sign, or an underscore. It can contain any unicode character, numbers, underscores, and dollar signs.
------------------
Dave
Sun Certified Programmer for the Java� 2 Platform
[This message has been edited by Dave Vick (edited December 06, 2001).]