Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
Slashdot Deals: Deal of the Day - 6 month subscription of Pandora One at 46% off. ×
This discussion has been archived. No new comments can be posted.

Java wierdness.... wtf?

Comments Filter:
  • It's been there since version 1.0, IIRC...

    • by FortKnox (169099) *
      Naw, I use javadoc a ton... just never really looked at System before. Only used 'out', 'err' and 'gc()'.
      • I had a lot to do with the System library, hence I've seen pretty much all of the javadoc. Problem with javadoc and me is the following: it is as addictive as wikipedia for me. I start reading, clik open a few tabs, continue reading... etc... etc... Quite a bad habit if you've got lots to code.

  • java.lang.System.arraycopy has been around since Java first went public. java.util.Arrays has only been there since 1.2. If the Arrays class had been in there since the beginning, arraycopy would probably have been there. As it was, it didn't really fit anywhere so they found java.lang.System as a place to stick it.
  • Okay, I'm not going to cite the source, because I could be making this up, or it applied to Java -3.8 from the year 1985, but I remember reading that just iterating over an array using the standard for(int i=0:iarray.length;i++) is/was/could be faster than using System.arraycopy.
  • I think there's usually an architecture dependant fast array copy method, this may be the accessor for it since it's System dependant.

Use the Force, Luke.