Results 1 to 4 of 4
  1. #1
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    157
    Rep Power
    5

    Default help for collection api

    hi all,
    please give me an explained description of collection api in java
    mention each with example and the difference between each other
    OR
    the urls where these explained

    Thanks in advance

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    Here and here

    P.S. At least attempt to do your own homework.

  3. #3
    csaimohanb is offline Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Default

    hi
    in collections we have vector whose initial capacity will be set to 10 by default.
    then if we dont need to add 10 elements,we will add only 5 elements,then remaining 5 units of memory will be wasted? wat happens to that remaining 5 cells of memory?

    -thanks

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    Nothing. It is only space for 5 references not five "objects", so it is only 20 bytes. Nothing to worry about.

Similar Threads

  1. collection framework
    By swati.jyoti in forum New To Java
    Replies: 8
    Last Post: 09-01-2009, 03:45 PM
  2. Collection Types
    By DavidG24 in forum New To Java
    Replies: 2
    Last Post: 04-18-2009, 05:03 PM
  3. Collection of Enum
    By Aldebaranl2 in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 12-04-2008, 07:49 AM
  4. How to get NamingEnumeration from my collection?
    By hencre in forum Advanced Java
    Replies: 1
    Last Post: 10-18-2008, 08:01 PM
  5. Collection - java
    By Moonlightkid in forum Advanced Java
    Replies: 3
    Last Post: 09-02-2008, 05:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •