Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

camelCased Java Methods!

Hi everyone,

Going through the Java documentations I had an intriguing question recently. Some methods in the documentation seems not to be camel cased. For example note the following,

http://docs.oracle.com/javase/7/docs/api/java/lang/System.html

In the System class the static method arraycopy is not camel cased. It's just arraycopy instead of arrayCopy. Do you guys have any idea why this is so?

Thank you.

Those methods are just left over from an early version of Java where they were less careful about the conventions. Changing the case for version 2 or after would break all the old code, so they have been left the same (incorrect) way to preserve backwards compatibility.

Thanks much for the answer. Now it makes sense. :)