It is a very simple question, but I think it is a little bit controversial.
When I code Java classes I use the following order.
class Foo {
// stati
I believe Sun's (now Oracle's) Java coding standards are more widely used. This is what you are currently using too.
From Code Conventions for the Java TM Programming Language :
3.1.3 Class and Interface Declarations
The following table describes the parts of a class or interface declaration, in the order that they should appear.
- Class/interface documentation comment ( /*.../)
class
orinterface
statement- Class/interface implementation comment ( /.../), if necessary
- Class (
static
) variables- Instance variables
- Constructors
- Methods