What coding standards in java should a programmer definitely follow for a more readable code?
Asked
Active
Viewed 1.1k times
10
-
1This question will definetly lead to an unstoppable discussion because everyone has another opinion about that. – Chris Mar 11 '11 at 21:07
-
2@Chris I do not 100% agree with that. There are some conventions that should really be followed like for example the naming conventions. – RoflcoptrException Mar 11 '11 at 21:11
-
Maybe you're right but the answers to this question would be nothing better (rather worth) - readable and searchable than any search issued to any search engine on that topic. I think it would be pretty hard to filter out the few really useful answers. – Chris Mar 11 '11 at 21:18
-
Plus, even if one might consider this not subjective, the topic has been [covered](http://stackoverflow.com/questions/338080/java-programming-guidelines) [several](http://stackoverflow.com/questions/4197595/is-there-a-java-coding-standards-if-so-is-there-a-tool-that-will-check-for-thos) [times](http://stackoverflow.com/questions/3442167/existence-of-a-java-standard) [before](http://stackoverflow.com/questions/3615348/is-there-a-coding-standard-for-java) (each with similar answers). – Rob Hruska Mar 11 '11 at 21:24
-
Some good compilation from different sources merged and actively maintained which is also `uptodate` http://geosoft.no/development/javastyle.html – Narayan Mar 13 '11 at 13:59
-
Fyi https://en.wikipedia.org/wiki/Coding_conventions – Apr 07 '21 at 10:56
4 Answers
10
Read the Code Conventions for the Java programming language by Oracle

Pawan Patil
- 1,067
- 5
- 20
- 46

RoflcoptrException
- 51,941
- 35
- 152
- 200
-
-
Link is currently ok with a warning `The information on this page is for Archive Purposes Only This page is not being actively maintained. Links within the documentation may not work and the information itself may no longer be valid. The last revision to this document was made on April 20, 1999` – Betlista Jul 26 '17 at 12:35
2
There are a lot of factors which go into defining the term "a good coding standard" but the official document should offer you some insight.

Sanjay T. Sharma
- 22,857
- 4
- 59
- 71