GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Java Naming Convention

Surya Sun Englisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am Java Naming Convention, erstellt von Surya Sun am 27/08/2015.
Erstellt von
Surya Sun
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck