Skip to main content

Posts

Showing posts with the label java preparation

Coding Standards In Java

 Coding Standards for Components : It is recommended to write components name by its purpose. This approach improves the readability and maintainability of code. Coding Standards for Classes : Usually class name should be noun starting with uppercase letter. If it contains multiple word than every inner word should start with uppercase. Eg: String, StringBuffer, Dog Coding Standards for Interface : Usually interface name should be adjective starting with uppercase letter. If it contains multiple word than every inner word should start with uppercase. Eg: Runnable, Serializable, Comparable Coding Standards for Methods : Usually method name should either be verb or verb noun combination starting with lower letter. If it contains multiple word than every inner word should start with uppercase. Eg: print(), sleep(), setSalary() Coding Standards for Variables : Usually variable name should be noun starting with lowercase letter. If it contains multiple word than every inner word should ...