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.

What are the Legacy classes?

classes legacy
0
10 Posted

What are the Legacy classes?

0
10

Early versions of java did not include Collections framework. Instead it defined several classes and one interface to store objects. When collection came these classes reengineered to support the Collection interfaces. These old classes are known are legacy classes. Legacy classes-Dictionary,HashTable,Properties, Stack, Vector Legacy interface- Enumeration. • Enumeration —Interface • Dictonary ——Abstract class • Hashtable —–Concrete class • Properties —–Concrete class • Vector —–Concrete class • Stack —–Concrete class Only values- Stack, Vector Key/value pair – Dictionary, HashTable, Properties Enumeration interface: It defines the method by which we can enumerate(obtain one at a time) through the elements. The legacy interface is suppressed by Iterator.

Related Questions

What is your question?

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

Experts123