DEV Community

Cover image for java Nameing conventions
Mohmmadnikkah
Mohmmadnikkah

Posted on

java Nameing conventions

Hello dear friends🙋‍♂️

In this way, we want to explain the proper naming in Java

Well let's go😉

➡️Always try to write packages in lowercase

for example --> com.sample.net

➡️For classes, try capitalizing the first letter and continuing the letter in lowercase

for example --> Restart

**Use meaningful names in classes

➡️Write the methods in lowercase and then write in the form of a camel case.

for example --> setAge

**Use the verb to name the method.

➡️Write all fixed variable words in capital letters.

for example --> MAX_AGE

Wait for the next posts...😉🤷‍♂️

tanks🌹

Top comments (0)