Google has released the java coding standards they enforced in their projects. These rules are enforced and clearly followed universally within Google.The standards document is divided into 6 main sections:
- Source File Basics
- Source File Structure
- Programming Practices
Most of these are already practiced else where and enforced by many popular IDE’s. But it is good to know the standards Google is following in their projects and this can be a good coding standards guide without any second thought.
Few notable points
A method is marked with the @Override annotation whenever it is legal. This includes a class method overriding a superclass method, a class method implementing an interface method, and an interface method respecifying a superinterface method.
For futher understanding read the Google Java Coding Standards.