IdentifiersSolutions - Legal and probably ok, although...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Solution to Identifiers Complete 1. simple. Legal but not a good choice -- violates capitalization convention. Still have to change filename because Java is case sensitive. 2. SimpleProgram. Legal and a good choice. 3. 1Simple. Illegal -- can't start with a digit. 4. _Simple_.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Legal and probably ok, although seems cumbersome compared to Simple. 5. *Simple*. Illegal -- can't have * in an identifier. 6. $123_45. Legal but not a good choice -- has nothing to do with the program. 7. Simple!. Illegal -- can't have ! in an identifier....
View Full Document

This note was uploaded on 03/22/2010 for the course CS 202 taught by Professor Fong during the Spring '10 term at SIU Carbondale.

Ask a homework question - tutors are online