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. • 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 | Java Code Conventions September 12 1997 Copyright Information 1997 Sun Microsystems Inc. All rights reserved. 2550 Garcia Avenue Mountain View California 94043-1100 . This document is protected by copyright. No part of this document may be reproduced in any form by any means without prior written authorization of Sun and its licensors if any. The information described in this document may be protected by one or more . patents foreign patents or pending applications. TRADEMARKS Sun Sun Microsystems Sun Microelectronics the Sun Logo SunXTL JavaSoft JavaOS the JavaSoft Logo Java HotJava Views HotJJavaChips picoJava microJava UltraJava JDBC the Java Cup and Steam Logo Write Once Run Anywhere and Solaris are trademarks or registered trademarks of Sun Microsystems Inc. in the United States and other countries. UNIX is a registered trademark in the United States and other countries exclusively licensed through X Open Company Ltd. Adobe is a registered trademark of Adobe Systems Inc. Netscape Navigator is a trademark of Netscape Communications Corporation. All other product names mentioned herein are the trademarks of their respective owners. THIS DOCUMENT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THE DOCUMENT. SUN MICROSYSTEMS INC. MAY MAKE IMPROVEMENTS AND OR CHANGES IN THE PRODUCT S AND OR THE PROGRAM S DESCRIBED IN THIS DOCUMENT AT ANY TIME. Please Recycle ii June 2 1997 1 Why Have Code Conventions. 1 Acknowledgments. 1 2 File File Common File 3 File Java Source Beginning Package and Import Class and