DEV Community

Cover image for java Nameing conventions
Mohmmadnikkah
Mohmmadnikkah

Posted on

2 2

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay