| file type | suffix |
| java source | .java |
| java bytecode | .class |
| File Names | Use |
| GNUMakefile | the preferred name for markefiles. we use gnumake to build our software |
| README | The preferred name for the file that summarizes the contents of a particular directory. |
3.1.1 Beginning Comments
All source files should begin with a c-style comment that lists the class name,version
information,date and copyright notice.
/*
*classname
*
*version information
*
*date
*
*copyright notice
*/
| Part of class/interface Declaration | Notes |
| 1.Class/interface documentation comment(/**...*/) |
see "Documentation Comments" on page 8 for information on what should be in this comment |
| 2.class or interface statement | 3.class/interface implementation comment(/*...*/),if necessary |
this comment should contain any class-wide or interface-wide information that wasn't appropriate for the class/interface documentation comment. |
| 4.Class(static) variables | first the public class variables, then the protected, then package level(no access modifier), and then the private. |
| 5.Instance Variables | First public, then protected, then package level(no access modifier), and then private |
| 6.Constructors | |
| 7.Methods | These methods should be grouped by functionality rather than by scope or accesssiblility. for example, a private class method can be in between two public instance methods. the goal is to make reading and understanding the code easier |