Standard for programming “beautiful” code in Java?

I'm reading some books about coding standards in Java

But there are some things that bother me For example, a method name should start with a lowercase letter or, if there is a second word, with an uppercase character But the criteria for variables are the same I think it's a bit confusing

So I ask you, what is your coding standard? Like:

>How do you name objects, methods, classes, etc. > if there are multiple objects in the same class, how do you name the second object? > If there is an object in the parameter of a method and there is another object of the same class in the method, how do you name them? > What is the best trade-off between performance / code beauty? Many small methods or longer methods? > Just say more. =)

Solution

>Most follow java code convention

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>