What
are
identifiers & Discuss the rules to name
identifier
Answers
Answered by
2
Answer:
Identifiers in Java are user defined words. They are defined by the user to perform a specific function. For example: computer_1, $ABC10, etc.
Rules are:
i. There should be no space between the letters.
ii. They sholud not begin with numerals.
iii. There should be no other characters except $(dollar sign) and _(underscore).
iv. They should not be keywords (reserved words like for, while, do etc.)
hope its what you were looking for and it helps you..
Similar questions