-
For 4+ letter acronyms, use lowercase. E.g.
LdapUtils
,HttpURL
-
For 2 and 3 letter acronyms, use uppercase. E.g.
IOUtils
,XMLUtils
-
Do NOT prefix interfaces with
I
. -
Do NOT postfix implementations with
Impl
. -
Use normal words for interfaces, e.g.
UserService
. -
For implementations use the interface name with a meaningful prefix, e.g.
LdapUserService
. -
If only one implementation exists and an interface is only necessary for technical requirements (e.g. remoting), you can prefix the interface name with
Default
and use it as your implementation's class name, e.g.DefaultUserService
Use uppercase letters and separate words with underlines, e.g. MAX_LENGTH