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

原文链接:java Nameing conventions

© 版权声明
THE END
喜欢就支持一下吧
点赞12 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容