We are moved to new domain
Click -> www.ehowtonow.com
Saturday, 14 September 2013

Java Best Practice – Code Conventions


Introduction

Why Code Conversion Required

Code conversions are important for programmers because

  1. 80% of the lifetime cost of a software goes to maintenance.
  2. Any of software hardly maintained by its own author in its whole life.
  3. Code Conversion improve the readability of software
  4. Code conversion allows engineer to understand new code more quickly and thoroughly.
  5. If you ship your code as product, you need to make sure it is well packaged and clean as any other product you create.

File Names 

The commonly used file names and suffixes given below

File Suffixes

File Type

Suffix

Description

Java Source .java 1.Name of java file with .java suffix.Example JavaTutorialsCorner.java
2.First Letter of file name must be a caps
3.Java class name and file name must be same
Java bytecode .class Class file will be created after successful compilation

Common File Names

Some of frequently used file names are given below

GNUmakeFile –  The preferred name for makefiles.The gnumake used to build our software

README -  The preferred name for file that summarizes the content of a particular directory.

We will learn more java best practice in upcoming chapter.This is basic best practice followed by most of programmers if I missed any thing please let me know, I will update

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: Java Best Practice – Code Conventions Rating: 5 Reviewed By: eHowToNow