Naming standards in JAVA
1. VARIABLE - It can be combination of alphabets, numbers,etc, First letter of first word should be lowercase for internal words make first letter capital they should be meaningful
2. CLASS - class name should be noun for more than one word first letter should be capital
3. INTERFACE - some coding convention as that of class because they are more like class only
4. METHODS - they should be verbs first letter should be lower case for more than one word first letter should be capital for internal words
5.CONSTANTS - they should be constant and connected with _
6. PACKAGE NAME - They should be lower case only
2. CLASS - class name should be noun for more than one word first letter should be capital
3. INTERFACE - some coding convention as that of class because they are more like class only
4. METHODS - they should be verbs first letter should be lower case for more than one word first letter should be capital for internal words
5.CONSTANTS - they should be constant and connected with _
6. PACKAGE NAME - They should be lower case only
Comments
Post a Comment