Table Of Contents
- File Organization
- Indentation
- Comments
- Declaration
- Statements
- White Space
- Naming Conventions
- Programming Practices
File Organization
-
Should be avoided the file longer than 900 line
-
Java source files have the following ordering:
-
Beginning comments
-
Package and import statements
-
Class and Interface declarations
-
Indentation
-
Four spaces should be used as the unit of indentation
-
Tabs must be set exactly every 4 spaces
-
Avoid line longer than 140 characters