What is the standard when coding in Java, when do you use camel case when do you use underscores etc.
You stick with the Java Code Conventions .
What exactly the standard is doesn't matter - what matters is that everyone follows it, and you should too.
ClassName
methodName
instanceVariable / localVariable
CONSTANT_NAME
G (Generic Type Parameter)
请参阅Sun的Java(TM)编程语言代码约定 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.