This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Code Conventions still up-to-date ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Code Conventions still up-to-date ?" Watch "Code Conventions still up-to-date ?" New topic

Code Conventions still up-to-date ?

Jean-Claude Rouvinez
Ranch Hand

Joined: Aug 26, 2003
Posts: 35
I found the code conventions at this location:

Are they up-to-date (Revised April 20, 1999)?
If no, where could I find a newer version that reflects the changes of the versions 1.5 or 1.6?

Thank you for your help.

Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
There is no more updated version of the code conventions. Although the statement "Revised April 20, 1999" is misleading - it has changed since then. But not recently - not for JDK 5 or 6. For the new features of JDK 5 I would simply follow the example of the code show in the JDK 5 release notes for new language features. For JDK 6 I don't think there are any new features which require new conventions. If you find a contradiction between the JDK 5 release notes and the code conventions, follow the conventions. But for any issue not addressed in the conventions (spacing around generics, enhanced for loops, and enums mostly) follow the release notes examples.

"I'm not back." - Bill Harding, Twister
jQuery in Action, 3rd edition
subject: Code Conventions still up-to-date ?
It's not a secret anymore!