Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn the Iterator interface extend the Enumeration interface?

0
Posted

Why doesn the Iterator interface extend the Enumeration interface?

0

Location: http://www.jguru.com/faq/view.jsp?EID=2360 Created: Dec 10, 1999 Modified: 1999-12-10 23:38:24.46 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) If the Iterator interface extended the Enumeration interface, the Iterator interface would end up with five methods where two methods just called other methods in the interface. The designers of the framework wanted to get rid of the cumbersome Enumeration method names so had the Iterator interface stand on its own with new shorter method names.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123