Regarding Collection API implementation
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   devang_parikh
Posted On:   Monday, July 21, 2003 03:03 AM

Who provides the implementation of Collection API interfaces. For Classes like Vector, ArrayList where all my inserted objects are stored in Vector / ArrayList class.

For Ex. Vector v = new Vector(); v.addElement("Test"); in which variable of v object this "Test" String will be stored and what will be the type of that variable. Same for the other classes like ArrayList, LinkedList, etc.

Which algorithms these classes are using for insertion / deletion /accessing objects stored into them ?

Re: Regarding Collection API implementation

Posted By:   Bahman_Barzideh  
Posted On:   Monday, July 21, 2003 04:50 AM

Sun now ships the source code for the JDK (src.zip, I think) as part of the JDK package.. You can find this file in your download, unzip it and look inside.
You will find the source files for both Vector and ArrayList there. a quick examination of these files should
reveal the answers to all your questions.
About | Sitemap | Contact