File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: Code Conventions still up-to-date ?
It's not a secret anymore!