What are Identifiers in java? State the rules for using Identifiers.
Answers
Answered by
1
Identifiers are names of variables, methods, classes, packages, and interfaces in Java.
The set of rules to be kept in mind are -
- It can have any alphabet (capital or small), digits, underscore and a dollar sign characters.
- It should not begin with digits or should not contain any special characters.
- It cannot have space between it.
- It must not be a keyword.
- It can be of any length.
Similar questions