Reuse Objects instead of creating new ones if possible Object creation is an expensive operation in Java, with impact on both performance an...
Showing posts with label Java Best Practice. Show all posts
Showing posts with label Java Best Practice. Show all posts
Thursday, 14 November 2013
Saturday, 14 September 2013
Java Best Practice – Programming Practices
9/14/2013 07:18:00 pm
Providing Access to Instance and Class Variables Don’t make any instance or class variable public without good reason. Often, instance ...
Java Best Practice – Naming Conventions
9/14/2013 07:17:00 pm
Naming conventions make programs more understandable by making them easier to read. They can also give information about the function of ...
Java Best Practice - Comments
9/14/2013 07:16:00 pm
Java programs can have two kinds of comments: implementation comments and documentation comments. Implementation comments are those found...
Java Best Practice - Statements
9/14/2013 07:15:00 pm
Simple Statements Each line should contains one statement.Example arg1++; //CORRECT arg2++; //...
Java Best Practice – White Spaces
9/14/2013 07:12:00 pm
Blank Lines Blank lines improved readability by setting off sections of code that are locally related. Two blank lines should always be used...
Java Best Practice - Declarations
9/14/2013 07:10:00 pm
Number Per Line int level; // indentation level int size; // size of table is prepared over int level, size; Do not put different type on t...
Java Best Practice - Indentation
9/14/2013 07:08:00 pm
Four space should be used as the unit of indentation.The exact construction of the indentation(space vs tab) is unspecified.Tabs must be set...
Java Best Practice - File Organization
9/14/2013 07:07:00 pm
The Java file consist of section that should be separated by blank lines and optional comments identifying each sections. Java Source file l...
Java Best Practice – Code Conventions
9/14/2013 07:06:00 pm
Introduction Why Code Conversion Required Code conversions are important for programmers because 80% of the lifetime cost of ...
Subscribe to:
Posts (Atom)
