Login with  Log in with facebook
Hiring Manager? SIGN UP HERE
3

What is the difference between Collection and a List.

Rishi Yadav
08/06/2011 at 21:40
3 Answers
1
1

First, a List inherits from Collection.

Collection is a container of individual elements (as Lists), but order of elements is not assumed.

A List associates a numerical index to objects, so it is an ordered container.

List produces a special Iterator (ListIterator) in addition to iterator coming with Collection.

Franck Gaille
08/09/2011 at 13:00

2
1

Sorry, I meant implements !!!

Franck Gaille
08/09/2011 at 13:03

3
1

Sorry again, I'm tired I think, don't take my second post into account....

Franck Gaille
08/09/2011 at 16:01

If you want to post any answer to this forum then you need to log in.
Schedule a Demo

Schedule a Demo with us

Name *
Email *
Phone *
Company *
Details