Tuesday, December 29, 2009

Java Keyword Ordering

Keyword Ordering
The Java language specification makes recommendations about the order of modifiers:

For Fields:
public -> protected -> private -> static -> final -> transient -> volatile.

For Methods:
public -> protected -> private -> abstract -> static -> final -> synchronized -> native -> strictfp.

For Classes:
public -> protected -> private -> abstract -> static -> final -> strictfp.