• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

arraycopy

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is probably just a 'because it is.' type question but is there any reason why the arraycopy method is in the java.lang.System class not java.util.Arrays and why isn't the c uppercase?

Thanks

Struan
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stuff in the java.lang.System class is pretty much the first defined in Java, and it predates java.lang.Arrays. I think because it came out first it is now pretty fundamental to so many Java programs that there is little chance for Sun to deprecate it.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, if you were curious if there existed some well thought out design considerations behind this situation, the answer is, "Probably not."
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...and why isn't the c uppercase?

There may well exist some "historic" reason for it (e.g. something in the C or C++ programming language standard library with the same name and a similar function), but I'm not aware of such a thing.

I'd guess that someone just wasn't following the current naming conventions, and then it was too late to change, without affecting substantial existing code.
[ May 27, 2004: Message edited by: Dirk Schreckmann ]
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
or maybe they wanted to have some exceptions to the rule to make the certification exam more "interesting"
 
reply
    Bookmark Topic Watch Topic
  • New Topic