OCMD - Order of Class Members Declaration

Accordig to Sun Code Conventions for Java, the parts of a class or interface declaration should appear in the following order

  1. Class (static) variables. First the public class variables, then the protected, then package level (no access modifier), and then the private.
  2. Instance variables. First the public class variables, then the protected, then package level (no access modifier), and then the private.
  3. Constructors
  4. Methods