Arif,
Instead for the criteria for illegal identifiers in
Java here is rule of thumb which you can use:
"In java an identifier is composed of a sequence of characters, where each character can be either a letter, a digit, a connecting punctuation (such as underscore _ ) or any currency symbol (such as $ ) and cannot start with a digit.
Hope it is clear.
Regards,
Raj.