Code Conventions for the Java Programming Language

This Code Conventions for the Java Programming Language document contains the standard conventions that Sun follow and recommend that others follow.


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. If you ship your source code as a product, you need to make sure it is as well packaged and clean as any other product you create.


  • Introduction
  • File Names
  • File Organization
  • Indentation
  • Comments
  • Declarations
  • Statements
  • White Space
  • Naming Conventions
  • Programming Practices

Book Details

Author(s): Sun Microsystems Inc.
Format(s): PDF, HTML, PostScript
File size: 128.89 KB
Number of pages: 24
Link: Download or Read online.

Leave a Reply