1. Coding standards for classes
    Class name should starts with upper case letter and if it contains multiple words every inner words also should start with capital letters.
    Example:
    String
    StringBuffer
    NumberFormat
    CustomerInformation.
  2. Coding standards for Interfaces
    Interface name should starts with capital letters and if it contains multiple words, every inner word also should starts with capital letter.
    Example:
    Runnable
    Serializable
    Clonable
    Movable
    Transferable
    Workable
  3. Coding standards for methods

    Method names should starts with lower case and every inner words starts with upper case(this convention is also called camel case convention).
    Example:
    getName(), getMessage(), toString(), show(), display().

  4. Coding standards for variables

    The variables should starts with lower case and every inner word should start with upper case i.e camel case convention.
    Example:
    Name, rollno, bandwidth, totalNumber.

  5. Coding standards for constants
    Constants should contain only upper case letters and words are separated with underscores.
    Example:
    MAX_SIZE, MIN_PRIORITY.
  6. Java Been Coding Conventions
    A java bean is a normal java class with private properties & public getter and setter methods.
    Example:

    public class CustomerBeen{
    private String name;
    public String getName(){
     return name;
    }
    public void setName(String name){
      this.name = name;
     }
    }
    
  7. Syntax for getterMethod
    Compulsory it should be public & should not contain any arguments.
    For the non boolean property xxx the following is syntax of getter method

    public datatype getXxx(){
      return xxx;
    }
    

    For the boolean property xxx the following is the syntax

    public boolean getXxx() or isXxx(){
      return xxx;
    }
    
  8. Syntax of setter Method
    It should be public and return type should be void. For any propertyxxx.

    public void setXxx(datatype xxx){
     this.xxx = xxx;
    }