Jump to content

Coding conventions

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ed Poor (talk | contribs) at 17:45, 16 November 2006 (stub - needs formatting and copy-editing - sorry, I'm in a rush). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Coding conventions

This Code Conventions for the Java Programming Language document contains the standard conventions that we at Sun follow and recommend that others follow. It covers filenames, file organization, indentation, comments, declarations, statements, white space, naming conventions, programming practices and includes a code example. Why have code conventions? Code conventions are important to programmers for a number of reasons:

   * 80% of the lifetime cost of a piece of software goes to maintenance.
   * Hardly any software is maintained for its whole life by the original author.
   * Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly. 

The Code Conventions for the Java Programming Language document was revised and updated on April 20, 1999.