What is the standard when coding in Java, when do you use camel case when do you use underscores etc.
+15
A:
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.
Anon.
2010-01-17 21:30:46
+9
A:
ClassName
- Renderer
- HttpSession
methodName
- applyTo()
- run()
instanceVariable / localVariable
- currentUser
- threadList
CONSTANT_NAME
- LOG
- DEFAULT_CONTEXT
G (Generic Type Parameter)
- T
- E
Willi
2010-01-17 21:33:08
Don't forget generic parameters.
Tom Hawtin - tackline
2010-01-18 00:46:16
What is the standard for acronyms in camel case?e.g. getURL() vs. getUrl()
CD Sanchez
2010-01-18 07:47:21
It's getUrl() or HttpSession, as shown in my post ;)
Willi
2010-01-18 23:26:24
Thank you, I'm retarded :(
CD Sanchez
2010-01-19 05:55:30