Question

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...

Était-ce utile?

La solution

It's because println existed way before Java

Autres conseils

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?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top