Mind map
Java Naming Convention
Map content
Java Naming Convention
Class Name:- a) class names always begin with a capital letter (eg. java.util.Scanner) b) if there are mutiple words in the class name then each word must also begin with a capital letter (eg. java.util.GregorianCalendar).
Package Name:- a)Package names always start with lowercase characters (util, lang, io, etc). b)if there are multiple words in the package name, then you need to use uppercase for all words except for the starting word. b) if there are multiple words in the package name, then you need to use uppercase for all words except for the starting word.
Methods: a)Method name must start with lowercase b) if there are multiple words in the name, then you need to use Uppercase for starting letters for these words except for the starting word. This is called as lowerCamelCase. example:-void myMethod() { }
Object/Variables:- a)Object/ variables must start with lowercase and if there are multiple words in the name, then you need to use Uppercase for starting letters for the words except for the starting word. This is called as lowerCamelCase. ex:-String myName; MyClass myObject;
Constant Variables: a)constant variables are declared using “static final” modifiers. And such variables must contain only UpperCase characters and multiple words must be seperated using ‘_’. example:-static final char END_OF_FILE
Information
- Description
- Mind Map on Java Naming Convention, created by Surya Sun on 27/08/2015.
- Created by
- Surya Sun
- Views
- 1
- Rating