Bruce Eckel's Thinking in Java | Contents | Prev | Next |
ThisIsAClassName
thisIsAMethodOrFieldName
Capitalize all the letters of static final primitive identifiers that have constant initializers in their definitions. This indicates they are compile-time constants.
Packages are a special case: they are all lowercase letters, even for intermediate words. The domain extension (com, org, net, edu, etc.) should also be lowercase. (This was a change between Java 1.1 and Java 1.2.)
1) A complicated switch statement: consider using polymorphism
2) A large number of methods that cover broadly different types of operations: consider using several classes
3) A large number of member variables that concern broadly different characteristics: consider using several classes
http://www.ulb.ac.be/esp/ip-Links/Java/joodcs/mm-WebBiblio.html