Philip Newton (pne) wrote,
Philip Newton
pne

  • Mood:

SCJP: Collection types are managed arrays. Me: ORLY?

Quoth the SCJP study guide:

Arrays are efficient, but most of the time you'll want to use one of the Collection types from java.util (including HashMap, ArrayList, TreeSet). Collection classes [… a]re really managed arrays, since they use arrays behind the scenes. […]

ORLY. Show me how a TreeSet uses arrays behind the scenes. Or a LinkedList, which—though they didn’t mention it explicitly—is also “one of the Collection types from java.util”.)

Feh.

If this goes on much further, I’ll have to create a separate entry just for their weirdness rather than posting as I go along.

Tags: java, programming, scjp, work
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments