GoConqr has a new look! Let us know what you think.

Mind map

Java Naming Convention

Surya Sun English

Map content

Java Naming Convention

  1. 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).

  2. 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.

  3. 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() { }

  4. 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;

  5. 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

Feedback

What is it about?

What do you think of the new look?

How do you like it?