Difference between the List and Enumeration
        Posted  
        
            by harigm
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by harigm
        
        
        
        Published on 2010-04-09T04:43:56Z
        Indexed on 
            2010/04/09
            4:53 UTC
        
        
        Read the original article
        Hit count: 522
        
I have a written a method to get all the records and return in the List Type, but I got out of memory error. So I changed return type from List to Enumeration, in the method, instead of ArrayList, uses Vector and return vector.elements at the end of the method. It works without any error. but I did not understand why.
Could someone explain Why this Enumeration worked?
© Stack Overflow or respective owner