From 4880650839cece63628cff8d7373fd0eb85edd40 Mon Sep 17 00:00:00 2001 From: Sonu Sourav Date: Sat, 10 Jul 2021 14:19:07 +0530 Subject: [PATCH] Correct Diff between Enumerator vs Iterator --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e960ea8..6808343 100755 --- a/README.md +++ b/README.md @@ -563,7 +563,7 @@ implementation for each of these methods. Interfaces are implemented. * **What is the difference between iterator and enumeration in java?** - - In Enumeration we have remove() method and we can only read and traverse through a collection. + - In Enumeration we don't have remove() method and we can only read and traverse through a collection. - Iterators can be applied to any collection. In Iterator, we can read and remove items from a collection. * **Do you agree we use composition over inheritance?** [Learn from here](https://www.journaldev.com/12086/composition-vs-inheritance)