Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Arrays - component type vs Element type
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 24th February 08:47
rob griffiths
External User
 
Posts: 1
Default Arrays - component type vs Element type



Can anyone explain to me the difference between an element type and a
component type?

In the java literature, arrays are said to have component types, whereas
collections from the Collections Framework are said to have an element
type.


http://java.sun.com/docs/books/jls/second_edition/html/arrays.doc.html

states:


Reading that - I thought I'd 'got' the difference, but then in 10.1 (a
para later) the terms seem to used synonomously!


When describing collections from the Collections framework there is
never any of this ambiguity/distinction - it is always "element type",
even when talking about a collection whose elements are themselves
collections.

Am I missing a "big idea"?

Any thoughts greatly appreciated.

Rob

r.w.griffiths@open.ac.uk
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666