> Education Commons > Java > Resources


  1. Every high-level language is composed of keywords. These words are built-in parts of the language.
  2. Words which are created by programmers are called identifiers. Java identifiers may be any length. They may start with a letter, underscore, or dollar sign, and may be composed of any number of letters, digits, and underscores; no other characters (not hyphens, not blank spaces) may be used. We will limit the starting character of our identifiers to a letter.
  3. Identifiers are used to name classes, methods, fields, variables, and constants.
  4. By convention
    • class identifiers start with a capital letter and use camelCase as required
    • method, field, and variable identifiers start with lowercase letters and use camelCase as required
    • constant identifiers are all in CAPITAL_LETTERS and use underscores as required
  5. Our goal is meaningful and descriptive identifiers.
  6. For mutators, method identifiers start with a verb describing the action performed by the method. For accessors, method identifiers either start with “get” or describe the value returned.
  7. All of our programs follow our course Style Guide. > Education Commons > Java > Resources

[This page last updated 2020-12-23 at 12h13 Toronto local time.]