The Artima Developer Community
Sponsored Link

Java Answers Forum
enumerator

1 reply on 1 page. Most recent reply: Dec 19, 2002 7:08 AM by Oliver

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
arshi

Posts: 1
Nickname: arsh
Registered: Dec, 2002

enumerator Posted: Dec 19, 2002 2:15 AM
Reply to this message Reply
Advertisement
1-What is the basic difference between Enumerator and Iterator? If both works as same how could we differentiate them?
2- What is the data structure of vector?
3- what is the difference between array list and vector?
Thanks in advance for your replies. "


Oliver

Posts: 12
Nickname: lazycat
Registered: Dec, 2002

Re: enumerator Posted: Dec 19, 2002 7:08 AM
Reply to this message Reply
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.

Flat View: This topic has 1 reply on 1 page
Topic: How to stop a Java-Pop-up? Previous Topic   Next Topic Topic: big/little endian-do u know what it means?!Help!!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use