Standards of Java

 🍵Let us dive into some of the important standards being followed across the JAVA programming language.

⭕There are 4 basic concepts of java language...

They can be defined as class, method, variable and object. Most computer languages contain these 4 parts. The most important thing is all basic concepts are defined as objects.

In the java programming language, these parts can be devided into a hierarchy in order. 

The order of:                                           ➢object                                               ➢class                                             ➢method                                         ➢variable 

A java program typically consists of at least one class and a main method which serves as the entry point of the program. 

Now let's see how to pick a name to the parts contained in a class. 

✍Class - Each class is defined with the class keyword, then a name of any non-keyword characters can be given.(by default, the 1st letter is uppercase, when more than 1 word 👉 camelcase method is used"1st word is lowercase and the 1st letter of the last word is uppercase").

Ex: Word, helloWord

✍Method - In this, all letters are lowercase and camelcase also used.(method must have Parameter List). 

Ex: sum()  

✍Variable - Naming a variable, all letters lowercase and use camelcase if desired.  

Ex: age

Apart from these 4 main things, there is nothing else in programming...

ogmming 

Comments

Popular posts from this blog

Java Object/ Class/ Object generating