Skip to content

Commit 416ca65

Browse files
Merge pull request amitshekhariitbhu#101 from sonusourav/master
Fix difference between Enumerator and Iterator
2 parents dd90286 + e30882e commit 416ca65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@
563563
implementation for each of these methods. Interfaces are implemented.
564564

565565
* **What is the difference between iterator and enumeration in java?**
566-
- In Enumeration we have remove() method and we can only read and traverse through a collection.
566+
- In Enumeration we don't have remove() method and we can only read and traverse through a collection.
567567
- Iterators can be applied to any collection. In Iterator, we can read and remove items from a collection.
568568

569569
* **Do you agree we use composition over inheritance?** [Learn from here](https://www.journaldev.com/12086/composition-vs-inheritance)

0 commit comments

Comments
 (0)