What is the standard when coding in Java, when do you use camel case when do you use 开发者_如何学Pythonunderscores 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
- Renderer
- HttpSession
methodName
- applyTo()
- run()
instanceVariable / localVariable
- currentUser
- threadList
CONSTANT_NAME
- LOG
- DEFAULT_CONTEXT
G (Generic Type Parameter)
- T
- E
精彩评论