It's not a secret anymore!
The moose likes Java in General and the fly likes Difference between the byte code generated for Generics and legacy collections Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Difference between the byte code generated for Generics and legacy collections" Watch "Difference between the byte code generated for Generics and legacy collections" New topic
Author

Difference between the byte code generated for Generics and legacy collections

Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

Hi,
Someone asked me this question. What is the difference between the byte code generated for Generics and Legacy collections. i really think from the byte code perspective there is no diff. please give me information about this.


"Nothing is forever except Change"
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32644
    
    4
You would have to display the bytecode with javap -c MyClass. Because of erasure, there might be no difference at all. I don't know; I haven't tried it.
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

Thanks for the reply
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32644
    
    4
You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between the byte code generated for Generics and legacy collections
 
Similar Threads
Generics
Collections and Generics
Generics..
generics
Generics