Вопрос

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

Это было полезно?

Решение

It's because println existed way before Java

Другие советы

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?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top