I am preparing for my SCJP and I just make a small observation
for "what makes a legal identifier?"
if you have previous experience in C++ and some form of Unix scripting (like Perl), you will know that
1. in C++, identifiers can start with "_" , the underscore
2. in Perl, identifiers start with "$", dollar sign.
and of course, most of you knows that identifiers can start with
Now, combine the 3 and u have a guideline for "what makes a legal identifier" or "what is a legal declaration?"
1. can start with characters
2. can start with underscore
3. can start with dollar sign
anything outside of this will not be correct?
is this observation right?