Standard method names, why is the l in println not capital? [closed]
-
01-06-2021 - |
Frage
I've been programming in Java for 6 weeks now, and was wondering why in println the l is lower case, but in most other methods each word starts with an upper case letter.
Is this because line is abreviated? Are there a set of standards that I should be aware of when naming methods. I've had a look through the Sun standards, and can't see a rule anywhere about making the first letter of an abrivated word lower case...
Lösung
It's because println
existed way before Java
Andere Tipps
There's many other more jarring inconsistencies if you look hard enough. The naming standard suggests that there should never be runs of capitals, even in abbreviations. Uri
, Url
, UrlConnection
, HttpClient
are the expected names of cases.
Unfortunately, changing them is unlikely to be worth the effort?