Identifier can starts with only $, _ and letters. Its the Rule of Identifier. I think no explanation is need here, its the rule and rule and nothing and also like we can't use identifier as a variable name.
Vijay Tidake wrote:Just a minor correction to statement
Identifier can starts with only $, _ and letters
Identifier can starts with only any currency symbol, _ and letters
Identifiers must start with a letter, a currency character ($), or a connecting
character such as the underscore ( _ ) ,, what other connecting characters are? that is my point?!
``Worry does not empty tomorrow of its sorrow; it empties today of its strength.''
Vijay Tidake wrote:Just a minor correction to statement
Identifier can starts with only $, _ and letters
Identifier can starts with only any currency symbol, _ and letters
Identifiers must start with a letter, a currency character ($), or a connecting
character such as the underscore ( _ ) ,, what other connecting characters are? that is my point?!
Hi as far as I am aware the only connecting character allowed is the underscore (_)
Other such as dot(.) and dash(-) are not regarded as connecting characters in java as they have other meaning.
Vijay Tidake wrote:Just a minor correction to statement
Identifier can starts with only $, _ and letters
Identifier can starts with only any currency symbol, _ and letters
Identifiers must start with a letter, a currency character ($), or a connecting
character such as the underscore ( _ ) ,, what other connecting characters are? that is my point?!
Hi as far as I am aware the only connecting character allowed is the underscore (_)
Other such as dot(.) and dash(-) are not regarded as connecting characters in java as they have other meaning.
thanks for your reply my friend ...it helped
``Worry does not empty tomorrow of its sorrow; it empties today of its strength.''
I think only letters, currency symbols, digits and the underscore (_) are allowed after the first character. In the K & B book it says "connecting characters" which is obviously only _ for the exam (see this thread).
John
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
a bit of art, as a gift, that will fit in a stocking