views:

180

answers:

2

Where can I find the most up-to-date official style conventions/guidelines (like how to properly name variables, methods, formatting, etc) for Java?

+3  A: 

Sun's code conventions can be found here: http://java.sun.com/docs/codeconv/

oxbow_lakes
Although the revision date is April 20, 1999, these are the most recent "official" style conventions and guidelines.
Thomas Owens
it hasn't been revised since 1999...? i found this site earlier but didn't think it was correct but i guess it must be...
hatorade
Many organizations use this as a baseline and expand on or modify these guidelines as necessary.
Thomas Owens
There is very little that was added to the language since 1999. Some of the missing parts can easily be derived from existing parts: Naming enum values? equivalent to "Constants". Naming annotations? equivalent to interfaces.
Joachim Sauer
+1  A: 

You might also want to check out Elements of Java Style.

Wilfred Springer
Or get their pdf from here :http://www.ambysoft.com/essays/javaCodingStandards.html
krishna