Java Coding Guideline

Table Of Contents

File Organization

  1. Should be avoided the file longer than 900 line

  2. Java source files have the following ordering:

    • Beginning comments

    • Package and import statements

    • Class and Interface declarations

Indentation

  1. Four spaces should be used as the unit of indentation

  2. Tabs must be set exactly every 4 spaces

  3. Avoid line longer than 140 characters

Comments

Declaration

Statements

White Space

Naming Conventions

Programming Practices

Search

    Table of Contents