Oliver
Posts: 12
Nickname: lazycat
Registered: Dec, 2002
|
|
Re: enumerator
|
Posted: Dec 19, 2002 7:08 AM
|
|
some answers from "Java In a Nutshell" (David Flanagan ,Publisher: O'Reilly)
In Java 1.2, the new Iterator interface is preferred over Enumeration.
Vector is quite similar to the ArrayList class, except that the methods of Vector are synchronized, which makes them thread-safe but increases the overhead of calling them. If you need thread safety or need to be compatible with Java 1.0 or Java 1.1, use Vector; otherwise, use ArrayList.
|
|