Results 1 to 3 of 3

Thread: Generics

  1. #1
    eva
    eva is offline Member
    Join Date
    Dec 2007
    Posts
    49
    Rep Power
    0

    Default Generics

    I am a big fay of Java Generics which are introduced lately. But I believe, that on the backed, a lot of conversions take place. It means that generics made programming easier and flexible but slows have slowed the program execution. Is this right to say?

    - PEACE

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    Generics has nothing to do with execution speed .. as far i know ..
    dont worry newbie, we got you covered.

  3. #3
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    hm, i don't think it slows it down, but there might be a possibility. the reason why i think this is because when i read about generics, it talked about how like, if you have a generic class, it converts the raw type E into Object. Maybe this causes execution speed to slow down a bit, i'm not sure.

Similar Threads

  1. Help w/ generics
    By Hollywood in forum New To Java
    Replies: 2
    Last Post: 02-16-2008, 03:08 AM
  2. Generics
    By sireesha in forum New To Java
    Replies: 2
    Last Post: 01-10-2008, 11:08 PM
  3. Java confused over Generics?
    By Bibendum in forum New To Java
    Replies: 3
    Last Post: 12-26-2007, 06:23 AM
  4. Java Generics (an introduction)
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 11-27-2007, 06:50 PM
  5. ArrayList<type> - Generics
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-14-2007, 03:21 PM

Posting Permissions

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