info:java_style
This is an old revision of the document!
Table of Contents
Java code style
Java does not enforce a particular code quality language-wise and therefor programmers should follow certain guidelines when writing code. As all guidelines, they might be violated for a good reason.
Classes
- All public class fields must be
final static
:
public final static int MY_CONST = 3;
- Class members have to be named uppercase with underscore between words:
MAX_INTEGER
Objects
- All fields must be
private
and only accessible through getters and setters.
- All fields must be
final
unless functionality requires mutability.
info/java_style.1424327565.txt.gz · Last modified: 2015/02/19 06:32 by moritz