Java Naming Naming When Does It Have Abbreviations?

If my class name contains any abbreviations, then what can I name?

Example: SomeDAO or SomeDao

Also, if any variable has abbreviations, what can I name?

Example: private String appUIDorprivate String appUID

Thanks!

+4
source share
3 answers

From the code convention for java provided by oracle:

. , . - ( , , URL HTML

DAO , SomeDAO

+2

wiki:

(, "XML" "HTTP" XMLHttpRequest). , (, XmlHttpRequest), , (, XMLHTTPRequest) . (, ExtensibleMarkupLanguageHyperTextTransferProtocolRequest).

, , .

, : com.x.y.XMLHttpReq com.x.y.XMLHTTPReq

, jar bin: Windows (case in-sensitive) - (, ) * NIX ( ) -

0

I would use applicationUniqueIdentyfier.

0
source

All Articles