Domanda

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

È stato utile?

Soluzione

It's because println existed way before Java

Altri suggerimenti

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?

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top