What are the rules for naming variable in Java?
The rules for naming variables in java:-
- Must not be a keyword in java.
- Must not begin with a digit.
- Must not contain embedded spaces.
- Can contain characters from various alphabets, like Japanese, Greek and Cyrillic.
0 comments:
Post a Comment