Computer Science, asked by riya30742229, 6 months ago

examples of identifiers in Java. ​

Answers

Answered by rajviprasad2601
2

The only allowed characters for identifiers are all alphanumeric characters([A-Z],[a-z],[0-9]), '$'(dollar sign) and '_' (underscore). For example “geek@” is not a valid java identifier as it contain '@' special character.

I hope it will help you....

Answered by sonipremshankar
2

Answer:

The only allowed characters for identifiers are all alphanumeric characters([A-Z],[a-z],[0-9]), '$'(dollar sign) and '_' (underscore). For example “geek@” is not a valid java identifier as it contain '@' special character.

Explanation:

In Java, all identifiers must begin with a letter, an underscore, or a Unicode currency character. Any other symbol, such as a number, is not valid. ... In Java an identifier is anything used for the name of a declared entity. So an identifier includes all package, class, method, parameter, and variable names.

Similar questions