GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java

 Print  |  
Question:  Tell me the differences between enumeration and iteration?Which can use where in realtime?



December 12, 2005 09:16:38 #3
 x   Member Since: December 2005    Total Comments: 1 

RE: Tell me the differences between enumeration and it...
 
Enumerator and Iterator are almost same.But in Iterator there is one extra method called "remove".and iterator is part of the new collection class.Java API says to use more of iterator than Enumerator which is kind of old class.
     

 

Back To Question