| Names in Java by David Matuszek |
Java has very strong conventions for names. You are expected to follow these conventions.
Please note that this is not just a class requirement, but an expectation in the "real world." You may find different conventions in some very early Java books, but the following conventions are now almost universally followed.
Classes and Interfaces
Object, Button, TextArea, ActionListener, ActionApapter, EOFException.Fields (that is, variables) and methods
println, equals, getParameter, addActionListener, out, height, maxArraySize.Constants (variables that are declared final)
E, PI, MAX_VALUE, EAST, CURRENCY_SYMBOL.red, yellow, green, blue, etc.)
These were defined before the naming conventions became firmly established.Additional (less strong) conventions
i, j, k are used as the indices of for loops. getParameter instead of getParm. Very
common abbreviations, such as max and min, are still used.