¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Java Naming Convention

Surya Sun Inglés

Contenido del mapa

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

Información

Descripción
Mapa Mental sobre Java Naming Convention, creado por Surya Sun el 27/08/2015.
Creado por
Surya Sun
Visitas
1
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?