Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+8 votes

What is a list of identifiers that Java does not accept as variable, method, or constant names?

asked in CSC211_Winter2018 by (8 points)

2 Answers

+1 vote
 
Best answer

reserved words look in the first set of slides on moodle there are a list of reserved words you cannot use

answered by (8 points)
selected by
0 votes

While it is important to know what are illegal names for variable, methods, etc. It's also important to understand naming convention. You could name a method starting with a capital letter, for example, MethodName(), but it would not be following naming convention. The better name for this would be methodName().

We usually talked about naming convention whenever we introduced a new topic, so you could find more on naming convention throughout all the slides.

answered by (8 points)
...