Results 1 to 9 of 9
  1. #1
    swati.jyoti is offline Member
    Join Date
    Mar 2009
    Posts
    42
    Rep Power
    0

    Question collection framework

    Can anyone tell the disadvantages of using collection framework in detail.

    Thanks..:)

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    What do you think are the disadvantages?

  3. #3
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    806
    Rep Power
    6

    Default

    As far as my knowledge is concerned,It will store everything as top level Object ,so u need to typecast properly.

    1.We have to carefully use.Say ,Vector we should not use for read only purpose.Because ,it is synchronized and make ur program slow.

    2.We have to carefully use the collection object or else it will raise "Out Of Memory" alarm.
    Ramya:cool:

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Quote Originally Posted by RamyaSivakanth View Post
    As far as my knowledge is concerned,It will store everything as top level Object ,so u need to typecast properly.
    No you don't. You just use generics and the compiler will take care of all that for you.

  5. #5
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    806
    Rep Power
    6

    Default

    Yes we can use generics ,But ,starters in java will not be familiar with the concepts.

    I have answered in the prelimnary level.Previous version is not having support of generics.

    So many projects are running with old jdk versions in so many companies.
    Ramya:cool:

  6. #6
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    The current version of Java is 1.6.
    The previous version is 1.5 which has support for generics.
    1.4 reached its end of service life on October 30th, 2008.

  7. #7
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    806
    Rep Power
    6

    Default

    My dear friend r035198x,
    No more arguments.She is a beginner.My reply perfectly fits ....
    Ramya:cool:

  8. #8
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    Yes, and a typical beginner works for a company that uses a dead Java version, Sure.

  9. #9
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Quote Originally Posted by RamyaSivakanth View Post
    My dear friend r035198x,
    No more arguments.She is a beginner.My reply perfectly fits ....
    I didn't know that the OP was female. Thanks for the information.

    The problem is that there is already a lot of misinformation going around the forums and it doesn't help to add to it.
    You are trying to teach false disadvantages of the Collections framework.

Similar Threads

  1. Java Collection Framework (Lists)
    By Java Tutorial in forum Java Tutorial
    Replies: 1
    Last Post: 05-16-2008, 01:44 PM
  2. Java Collection Framework (Sets)
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 12-07-2007, 07:50 PM
  3. How to use Collection in Springs
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-26-2007, 08:36 PM
  4. Problems with collection
    By Heather in forum New To Java
    Replies: 1
    Last Post: 07-08-2007, 12:22 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
  •