Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes

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

asked in CSC211_Winter2018 by (1 point)

2 Answers

+2 votes
 
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 (1 point)
selected by
+1 vote

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 (1 point)
...