---
title: "What is the difference between Iterator and Enumeration?"  
description: "What is the difference between Iterator and Enumeration?"  
author: "Anonymous User"  
published: 2015-05-12  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/2513/what-is-the-difference-between-iterator-and-enumeration  
category: "java"  
tags: ["java", "collection"]  
reading_time: 1 minute  

---

# What is the difference between Iterator and Enumeration?

**Iterator** 1)Iterator can traverse legacy and non-legacy elements. 2)Iterator is fail-fast. 3)Iterator is slower than Enumeration. \
\
**Enumeration**1)Enumeration can traverse only legacy elements.2)Enumeration is not fail-fast.3)Enumeration is faster than Iterator.

## Answers

### Answer by Anonymous User

**Iterator** 1)Iterator can traverse legacy and non-legacy elements. 2)Iterator is fail-fast. 3)Iterator is slower than Enumeration. \
\
**Enumeration**1)Enumeration can traverse only legacy elements.2)Enumeration is not fail-fast.3)Enumeration is faster than Iterator.


---

Original Source: https://www.mindstick.com/interview/2513/what-is-the-difference-between-iterator-and-enumeration

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
