Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle Java code conventions

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

like image 794
X-HuMan Avatar asked Apr 09 '14 11:04

X-HuMan


People also ask

What are the coding conventions of Java?

When it comes to Java, there are two most common and well-known coding conventions: Oracle's Java Code Conventions and Google's Java Style Guide coding convention.

What is the purpose of code convention in Java?

Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly. If you ship your source code as a product, you need to make sure it is as well packaged and clean as any other product you create.

What naming convention is used in Java?

Java uses CamelCase as a practice for writing names of methods, variables, classes, packages, and constants.


1 Answers

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.

like image 163
eis Avatar answered Sep 21 '22 17:09

eis