Can anyone put some light on, When to use Object and when to go for Linked list data structure? Here, Lets assume that the number of Objects to be inserted is known, i.e, let me know other criteria to be considered like performance, memory and any thing other than dynamic growing length property of Linked list over Arrays,in which length must be known at the time of instance creation of array.
what if your numObjects is very large, and say you wanted to acess the last one in the list of objects, think of the time required to do so with a linked list, then with an array. -just a small thought to try and help
National Research Council<br />Internet Logic Department
Is that the only choice -- what about java.util.ArrayList? With the new generics enhancement to collections, I prefer collections like List<Foo> over Foo, unless I know I must have an array -- perhaps other code is already expecting arrays.