50

Does someone know where I can find the document by Oracle which describes Java code conventions?

This URL is not available anymore, for that reason I created new question for this topic.

http://www.oracle.com/technetwork/java/codeconv-138413.html

4
  • 2
    This is also asked on the oracle forums, but no answers. Commented Apr 9, 2014 at 12:32
  • 1
    If you know better option to do this I will follow to that with pleasure. @eis I've seen the oracle forums as well and I thought all developers are here and it could be helpful for everyone. This was the purpose. Commented Apr 9, 2014 at 15:03
  • 2
    Yes, I was only referencing the question to indicate that other people are searching for an answer to this as well. Commented Apr 9, 2014 at 15:27
  • note to future close voters: I think this falls into Shog9's "canonical source" exception. Commented Jan 4, 2019 at 8:19

6 Answers 6

32

One option is to use wayback machine, which seems to contain the document (here's direct link to pdf version). However I would also be interested to find out what Oracle did with it and do they intend to get rid of it.

There's a discussion on Oracle forums about this being raised to OTN support, but no response is mentioned.


Update on 17.6.2014: There's now a forum posting added to the site explaining the following:

Those Java Code Conventions were written in 1999 and have not been maintained since.

The information might not be up to date; links within the documents might not work. That is why the pages were removed. Unfortunately there are other sites that point to that document which were not updated.

To avoid confusions we have re-posted the original document –with an appropriate disclaimer about the information not being up to date- while we clean up those other sites.

Try Code Conventions for the Java Programming Language

And indeed, seems the page has been restored.

Sign up to request clarification or add additional context in comments.

Comments

11

The required basis is here:

Google:

Oracle:

Spring:

More advanced stuff, related to logical structures in the book on page https://martinfowler.com/eaaCatalog/ and the book "Clean Code"


Comments

3

I think that document is dated. SEI has published the latest standards - cool and really good.

2 Comments

Does SEI define the rules for Oracle or it is different one?
That link is to SEI CERT's secure coding guidelines, while also very important IMHO they are not general-purpose coding style guidelines. Their new location seems to be securecoding.cert.org/confluence/display/java
0

The document could be found at: http://www.oracle.com/technetwork/java/codeconventions-150003.pdf

1 Comment

If you will check the link from the previous answer it contains the same link which you've added ;)
0

The old document seems to be available as HTML too http://www.oracle.com/technetwork/java/codeconvtoc-136057.html

Comments

0

I answer this only because the Oracle docs linked here seem to have last been edited in 1997 and this Oracle doc was last edited in April 20, 1999. It has the appropriate disclaimer of no longer being updated. https://www.oracle.com/java/technologies/javase/codeconventions-fileorganization.html

1 Comment

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.